/[Apache-SVN]
ViewVC logotype

Revision 1878890


Jump to revision: Previous Next
Author: jorton
Date: Tue Jun 16 14:31:26 2020 UTC (3 years, 10 months ago)
Changed paths: 3
Log Message:
mod_ldap: Use the LDAP API directly to implement the rebind callback
for modern versions of OpenLDAP, avoiding the overhead of the apr-util
implementation.

* modules/ldap/util_ldap.c:
  Define USE_APR_LDAP_REBIND if a modern version of OpenLDAP is used.
  (uldap_rebind_proc): New function.
  (uldap_rebind_init, uldap_rebind_add): Define, using either the
  callback or the (bad) APR-util versions.
  (uldap_connection_unbind): Clear the rebind pool to remove rebind
  references prior to destroying the LDAP *.
  Omit for !USE_APR_LDAP_REBIND.
  (uldap_connection_init): Use new wrappers, only create the rebind
  pool if USE_APR_LDAP_REBIND.

* include/util_ldap.h: Don't include apr_ldap_rebind.h here.

PR: 64414
Github: closes #124


Changed paths

Path Details
Directoryhttpd/httpd/trunk/CHANGES modified , text changed
Directoryhttpd/httpd/trunk/include/util_ldap.h modified , text changed
Directoryhttpd/httpd/trunk/modules/ldap/util_ldap.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26