Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mod_ldap: Use the LDAP API directly to implement the rebind callback #370

Closed
wants to merge 1 commit into from

Commits on Jul 6, 2023

  1. 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 OpenSSL 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 apache#124
    
    git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1878890 13f79535-47bb-0310-9956-ffa450edef68
    notroj committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    c87ed3f View commit details
    Browse the repository at this point in the history