On Thursday 18 July 2002 11:41, SkyLeach wrote: > I have been working on this for a couple of days now and I am getting > nowhere. > > Has anyone here gotten PHP to work with OpenLDAP version 2.1? I keep > getting the following error: > > [root@the-anchor php-4.2.1]# /www/bin/apachectl configtestssl > Syntax error on line 209 of /www/conf/httpd.conf: > Cannot load /www/libexec/libphp4.so into server: /usr/lib/libldap.so.2: > undefined symbol: ber_dupbv > > I have the following installed (plus other unrelated options): > apache_1.3.26 > php-4.2.1 > mod_ssl-2.8.10-1.3.26 > openldap-2.1.3 > > As you can see from the error, I have no trouble compiling it or getting it > ready to load, it just won't load because of the ldap problem. PHP works > fine without ldap, but we are moving to LDAP authentication with OpenLDAP > and I need to get this working. > > Thanks all for your help.
Make sure that your php module was linked against liblber as well as the appropriate libldap2.so library. To check, use ldd. For example: morpork:/usr/local/apache/libexec# ldd libphp4.so | grep -E "liblber|libldap" libldap.so.2 => /usr/local/ldap/lib/libldap.so.2 (0x40177000) liblber.so.2 => /usr/local/ldap/lib/liblber.so.2 (0x4019e000) If I remember correctly, liblber is included with the ldap libraries, make sure that you tell php where they are for example: ./configure --with-ldap=/path/to/open/ldap -matt -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php