I am attempting to get LDAP authentication up and running using PHP but for some reason I am unable to get the LDAP PHP module to load.
I'm running TC 4.6.1
I have installed
apache2-mod-php5.tcz
apache2.tcz
php5.tcz
mysql.tcz
When I do phpinfo() it shows that PHP was configured with LDAP
Configure Command './configure' '--prefix=/usr/local' '--localstatedir=/var' '--sysconfdir=/usr/local/etc' '--mandir=/usr/local/share/man' '--enable-shared' '--enable-static' '--enable-libgcc' '--enable-bcmath=shared' '--enable-soap=shared' '--enable-dmalloc=shared' '--with-apxs2=/usr/local/bin/apxs2' '--with-recode=shared,/usr/local' '--with-snmp=shared,/usr/local' '--enable-sockets=shared' '--enable-dba=shared' '--enable-zip=shared' '--with-xsl=shared,/usr/local' '--with-config-file-path=/usr/local/apache2/conf/php5/' '--with-config-file-scan-dir=/usr/local/apache2/conf/php5/extensions/' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-jpeg-dir=/usr' '--with-xpm-dir=/usr' '--with-libexpat-dir=shared,/usr/local' '--with-gmp=shared,/usr/local' '--with-gettext=shared,/usr/local' '--with-iconv=shared,/usr/local' '--with-pgsql=shared,/usr/local' '--with-pdo-pgsql=shared,/usr/local' '--enable-gd-native-ttf' '--enable-exif=shared' '--enable-ftp=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-sysvmsg=shared' '--enable-wddx=shared' '--enable-shmop=shared' '--with-readline=shared,/usr/local' '--with-sqlite3=shared,/usr/local' '--with-pdo-sqlite=shared,/usr/local' '--with-mhash=shared,/usr/local' '--with-gd=shared' '--with-gdbm=shared,/usr/local' '--enable-calendar=shared' '--with-libxml-dir=shared,/usr/local' '--with-openssl=shared,/usr/local' '--with-pcre-regex=/usr/local' '--with-zlib=shared,/usr' '--with-zlib-dir=/usr' '--with-bz2=shared,/usr/local' '--with-curl=shared,/usr/local' '--with-mcrypt=shared,/usr/local' '--with-ldap=shared,/usr/local' '--with-mysql=shared,mysqlnd' '--with-mysqli=shared,mysqlnd' '--with-pdo-mysql=shared,mysqlnd' '--enable-intl=shared' '--disable-phar' '--disable-cli' '--without-pear' '--with-enchant=shared,/usr/local' '--disable-cgi' '--with-unixODBC=shared,/usr/local' '--with-pdo-odbc=shared,unixODBC' '--with-db4=shared,/usr/local' '--enable-mbstring=shared'
But I don't see anything else in the phpinfo() about LDAP. I tried adding:
extensions=ldap.so
to my php.ini file and rebooted the server, but still nothing.
I did a search for ldap.so and it was found in:
/tmp/tcloop/apache2-mod-php5/usr/local/lib/php/extensions/no-debug-zts-20100525/ldap.so
/usr/local/lib/php/extensions/no-debug-zts-20100525/ldap.so
When I try to run ldap_connect I receive the following error:
Fatal error: Call to undefined function ldap_connect() in /usr/local/apache2/htdocs/test.php on line 17
I have a sneaking suspicion that I am missing something obvious, but I just can't see it.
Has anyone else ran into this issue, or possibly know what I am doing wrong?