dbut amlioration LDAP
This commit is contained in:
parent
0d884061bf
commit
7b2d2cf357
@ -274,7 +274,7 @@ if (function_exists("ldap_connect"))
|
||||
print img_picto('','alerte');
|
||||
print $langs->trans("LDAPTestKO").'<br>';
|
||||
print "<br>";
|
||||
print ldap_error($ds);
|
||||
print $ds->err;
|
||||
print "<br>";
|
||||
}
|
||||
|
||||
|
||||
@ -58,6 +58,10 @@ function dolibarr_ldap_connect()
|
||||
{
|
||||
ldap_set_option($ldapconnect, LDAP_OPT_PROTOCOL_VERSION, $conf->global->LDAP_SERVER_PROTOCOLVERSION);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->err .= ldap_error($ldapconnect);
|
||||
}
|
||||
|
||||
return $ldapconnect;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user