Where is configured the library used by Apache httpd server for the ldap_search_ext_s implementation?
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. Where Apache is configured to use OpenLDAP? Thanks in advance for your help, Michael
RE: Where is configured the library used by Apache httpd server for the ldap_search_ext_s implementation?
Thank you for your reply! I have found the following: ldd /usr/lib64/apr-util-1/apr_ldap-1.so … libldap-2.4.so.2 = /lib64/libldap-2.4.so.2 (0x7f337a64d000) … and the following: rpm -ql openldap | grep .so ... /lib64/libldap-2.4.so.2 /lib64/libldap-2.4.so.2.5.6 ... I did not find anything related to /etc/httpd/conf/httpd.conf. Should I add libldap-2.4.so.2 or apr_ldap-1.so to the file if I want to use OpenLdap? Or other configuration? Thanks in advance for your help, Michael Date: Fri, 14 Jun 2013 15:50:56 -0400 Subject: Re: Where is configured the library used by Apache httpd server for the ldap_search_ext_s implementation? From: cove...@gmail.com To: dev@httpd.apache.org 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=pathpath 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.
RE: Where is configured the library used by Apache httpd server for the ldap_search_ext_s implementation?
Thank you for your reply! I hope you will be able answer to one more question (that is fit to dev list and not to users list): According to the link below mod_ldap should be compiled differently for each LDAP SDK (OpenLDAP SDK, Novell LDAP SDK, Mozilla LDAP SDK, native Solaris LDAP SDK or the native Microsoft LDAP SDK): https://httpd.apache.org/docs/current/mod/mod_ldap.html Where can I download mod_ldap for different LDAP SDK (for example for Mozilla LDAP SDK)? Or I should build it on my computer? What is default LDAP SDK that supported by mod_ldap in the httpd distribution. Thanks in advance for your help, Michael Date: Fri, 14 Jun 2013 15:50:56 -0400 Subject: Re: Where is configured the library used by Apache httpd server for the ldap_search_ext_s implementation? From: cove...@gmail.com To: dev@httpd.apache.org 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=pathpath 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.