Ajout definition de la version du protocole

This commit is contained in:
Rodolphe Quiedeville 2005-08-08 12:10:34 +00:00
parent 7453c2ff8d
commit b822ab599c

View File

@ -42,6 +42,11 @@ function dolibarr_ldap_connect()
{ {
$ldapconnect = ldap_connect(LDAP_SERVER_HOST,LDAP_SERVER_PORT); $ldapconnect = ldap_connect(LDAP_SERVER_HOST,LDAP_SERVER_PORT);
if ($ldapconnect)
{
ldap_set_option($ldapconnect, LDAP_OPT_PROTOCOL_VERSION, LDAP_SERVER_PROTOCOLVERSION);
}
return $ldapconnect; return $ldapconnect;
} }