From 2004def59589e11675409bd3db2bd9df34ac864b Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 19 Nov 2012 19:23:29 +0000 Subject: Put these logs under debug since that's their purpose --- etc/inc/auth.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index bf01ca9..f469137 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -1125,7 +1125,8 @@ function ldap_backed($username, $passwd, $authcfg) { return false; } - log_auth(sprintf(gettext('Logged in successfully as %1$s via LDAP server %2$s with DN = %3$s.'), $username, $ldapname, $userdn)); + if ($debug) + log_auth(sprintf(gettext('Logged in successfully as %1$s via LDAP server %2$s with DN = %3$s.'), $username, $ldapname, $userdn)); /* At this point we are bound to LDAP so the user was auth'd okay. Close connection. */ @ldap_unbind($ldap); -- cgit v1.1