Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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