Ticket #242 (closed defect: fixed)
LDAPv3 option
| Reported by: | adriel.goddard@… | Owned by: | rjl |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.0.1 |
| Component: | PHP scripts | Version: | 1.0.0 RC6 |
| Severity: | normal | Keywords: | ldap v3 protocol |
| Cc: |
Description
Please allow for an option in the system configuration where the version of LDAP protocol can be specified. I've recently come across an issue where Maia was unable to bind to my LDAP server because it was running v3. The fix was to add the following line between the asterisks in auth.php:
$ldap_conn = ldap_connect($auth_ldap_server)
or die($lang_error_ldap_connect);
//********************************************************
ldap_set_option($ldap_conn, LDAP_OPT_PROTOCOL_VERSION, 3);
//********************************************************
@ldap_bind($ldap_conn, $auth_ldap_bind_dn, $auth_ldap_password)
or die($lang_error_ldap_bind);
Thank you.

