Forum Moderators: coopster

Message Too Old, No Replies

Installing LDAP with Sasl

Php - Sasl - Ldap

         

pradeepkris

8:50 pm on Aug 8, 2007 (gmt 0)

10+ Year Member



Hello All,

I am trying to install LDAP with SASL support module in PHP and I could not get it to work. I would appreciate if anybody can point out what I am missing if any.

I download php-5.2.3 and cyrus-sasl-2.1.22 and executed the following commands:

:/apps/cyrus-sasl-2.1.22 root# ./configure

:/apps/cyrus-sasl-2.1.22 root# make

:/apps/cyrus-sasl-2.1.22 root# make install

I also set the SASL_PATH environment variable: export SASL_PATH=/usr/local/lib/sasl2

:/apps/php-5/php-5.2.3 root# ./configure --with-dom --enable-ftp --with-ldap --with-ldap-sasl=/usr/local/ --includedir=/usr/local/include/ --with-apxs >> logger3.log

I get this in the log returned by configure.

checking for LDAP support... yes
checking for LDAP Cyrus SASL support... /usr/local/
checking for 3 arg ldap_set_rebind_proc... (cached) yes
checking for ldap_parse_result... (cached) yes
checking for ldap_parse_reference... (cached) yes
checking for ldap_start_tls_s... (cached) yes
checking for sasl_version in -lldap... (cached) yes
checking for ldap_bind_s... (cached) yes

:/apps/php-5/php-5.2.3 root# make

:/apps/php-5/php-5.2.3 root# sudo make install

:/apps/php-5/php-5.2.3 root# cp php.ini-dist /usr/local/lib/php.ini

:/apps/php-5/php-5.2.3 root# sudo apachectl graceful

After this, I tried to call ldap_sasl_bind() and got this error:

Fatal error: Call to undefined function ldap_sasl_bind()

Any help would be appreciated.

Thanks,
Pradeep

eelixduppy

9:24 am on Aug 14, 2007 (gmt 0)



Hello, and Welcome to WebmasterWorld!

Make sure that you've restarted your server, that you have everything in its correct place: sasl.h, and ibeay32.dll and ssleay32.dll (if you are using win32), and be sure that php is actually being compiled with --with-ldap-sasl (check in phpinfo).

See if that fixes anything.