On Fri, Jun 14, 2013 at 3:45 PM, Michael Furman <michael_fur...@hotmail.com> wrote: > Dear Apache developers! > > I want to understand where is configured the library used by Apache httpd > server for the ldap_search_ext_s implementation. > > I looked at util_ldap.c: > http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/modules/ldap/util_ldap.c?view=markup > > result = ldap_search_ext_s(ldc->ldap, > > (char *)basedn, scope, > > (char *)filter, attrs, 0, > > NULL, NULL, NULL, APR_LDAP_SIZELIMIT, &res); > > > > The method ldap_search_ext_s can be implemented by different providers, > include OpenLDAP, Novell LDAP SDK or iPlanet (Netscape) SDK. >
The flavor of LDAP SDK is detected when the "apr-util" dependency is configured: srclib/apr-util$ ./configure --help|grep ldap --with-ldap-include=path path to ldap include files with trailing slash --with-ldap-lib=path path to ldap lib file --with-ldap=library ldap library to use If you build httpd, apr, and apr-util all at once you usually pass these flags to httpd's configure script and they are passed down to apr-util. For recent releases, You can see the dependency baked into the apr_ldap-1.so using ldd.