]> granicus.if.org Git - postgresql/commit
Define LDAP_NO_ATTRS if necessary.
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 13 Sep 2017 12:20:45 +0000 (08:20 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 13 Sep 2017 12:22:42 +0000 (08:22 -0400)
commit1a2fdc99a4b341feb6c01304e58f01dd0e095d9a
treeb2e9d3e27da30ea17d05808d1e6933b9098e847d
parent69835bc8988812c960f4ed5aeee86b62ac73602a
Define LDAP_NO_ATTRS if necessary.

Commit 83aaac41c66959a3ebaec7daadc4885b5f98f561 introduced the use of
LDAP_NO_ATTRS to avoid requesting a dummy attribute when doing search+bind
LDAP authentication.  It turns out that not all LDAP implementations define
that macro, but its value is fixed by the protocol so we can define it
ourselves if it's missing.

Author: Thomas Munro
Reported-By: Ashutosh Sharma
Discussion: https://postgr.es/m/CAE9k0Pm6FKCfPCiAr26-L_SMGOA7dT_k0%2B3pEbB8%2B-oT39xRpw%40mail.gmail.com
src/backend/libpq/auth.c