Jack Bates
-
2007-08-15
Our LDAP server supports only LDAP v3 but the PHP default is LDAP v2. Consequently whenever configuring a PHP script to access our LDAP server, we must set the LDAP_OPT_PROTOCOL_VERSION option.
We configured the SquirrelMail LDAP address book backend by setting:
$ldap_server[0]['protocol'] = 3;
- in config/config.php
We set $SQRUD_LDAP_FROM_MAIN_CONFIG to true, but the SQRUD LDAP backend does not respect the 'protocol' option.
To fix this, we copied the lines from the address book backend which set LDAP_OPT_PROTOCOL_VERSION to the SQRUD backend.
Now SQRUD successfully connects to our LDAP v3 server.
Thanks for SQRUD! Jack