better error message
This commit is contained in:
parent
abceebdc4b
commit
32d18361e9
|
@ -1358,7 +1358,7 @@ function getExtendedLDAPErrorMessage($server) {
|
|||
$ldapMsg = null;
|
||||
ldap_get_option($server, LDAP_OPT_ERROR_STRING, $ldapMsg);
|
||||
if (empty($ldapMsg)) {
|
||||
return null;
|
||||
return ldap_error($server);
|
||||
}
|
||||
return $ldapMsg;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue