summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-03-06 08:37:27 -0500
committerjim-p <jimp@pfsense.org>2013-03-06 08:37:27 -0500
commit3697adb236d952c4f9e577dc10c96ac19c10069e (patch)
treee0244ea3c1746810a7d72eb4800a5e95ecc9922e /etc/inc/auth.inc
parentb710a07883fbc0a462e5aad6bf6f6d85f1126615 (diff)
downloadpfsense-3697adb236d952c4f9e577dc10c96ac19c10069e.zip
pfsense-3697adb236d952c4f9e577dc10c96ac19c10069e.tar.gz
Print the error message from LDAP in the log for a bind failure.
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r--etc/inc/auth.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index d59ee70..c78b063 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -1120,7 +1120,7 @@ function ldap_backed($username, $passwd, $authcfg) {
/* Now lets bind as the user we found */
if (!($res = @ldap_bind($ldap, $userdn, $passwd))) {
- log_error(sprintf(gettext('ERROR! Could not login to server %1$s as user %2$s.'), $ldapname, $username));
+ log_error(sprintf(gettext('ERROR! Could not login to server %1$s as user %2$s: %3$s'), $ldapname, $username, ldap_error($ldap)));
@ldap_unbind($ldap);
return false;
}
OpenPOWER on IntegriCloud