Re: LDAP: bugfix and deprecated OpenLDAP API
Peter Eisentraut <peter_e@gmx.net>
From: Peter Eisentraut <peter_e@gmx.net>
To: Magnus Hagander <magnus@hagander.net>
Cc: Albe Laurenz <laurenz.albe@wien.gv.at>,
"pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2013-07-01T12:35:08Z
Lists: pgsql-hackers
On 7/1/13 7:58 AM, Magnus Hagander wrote: >> I also tried to fix the problem mentioned in >> > http://www.postgresql.org/message-id/CA+TgmoYnj=Es3L_0Q8+ijR4tVhvztW1fb=7C9K9gEmZWqhpwuQ@mail.gmail.com >> > that we use deprecated OpenLDAP functions, see the attached >> > ldap-undeprecate.patch. >> > >> > I added a file ldap.c in src/port with my own implementation >> > of some of the functions that OpenLDAP has deprecated. >> > With that, the code changes necessary are pretty minimal. > Doesn't this need a version check against OpenSSL at some point, or a > configure check? Are we just assuming that all versions that people > ever use have the function deprecated? (That's probably not entirely > unreasonable, just double checking) Btw., I just checked the source code of Apache, PHP, and PAM, and they are all unconditionally building with LDAP_DEPRECATED. So maybe there is no hurry about this.