From 32d18361e9dc9da890109bd37de4464215efbfa3 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 29 Aug 2018 18:19:17 +0200 Subject: [PATCH] better error message --- lam/lib/account.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/lib/account.inc b/lam/lib/account.inc index d43a17b9..515b0990 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -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; }