I'm experiencing some difficulties enabling LDAP in an Archlinux environment with Lighttpd (lighty) and PHP. I have downloaded and installed the php-ldap module, enabled it in php.ini and the phpinfo() shows this under "Configure command"

'--with-ldap=shared' '--with-ldap-sasl' 

Which for me indicates that it is enabled. But when I use a LDAP command, such as ldap_connect(), it throws an "undefined function" error back. I did kill the Lighttpd process and start it again before testing.

I have also installed the required packages libldap and libsasl.


It seems that the version of the LDAP module was incompatible with the PHP version. PHP 5.3 and the LDAP module 5.4.

Tested in test environment with 5.4 on both the LDAP module and PHP and it works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.