summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-11-19 19:21:28 +0000
committerErmal <eri@pfsense.org>2012-11-19 19:21:28 +0000
commit3ac8324f5ba62e20e7fe41ecf138e67c74c35baf (patch)
tree3cce6fe8e64ceb2421da27ae808a881baaa53f44 /etc/inc/auth.inc
parenta9157b6b83620ee4aeccbc09dd702b9644cd5c85 (diff)
downloadpfsense-3ac8324f5ba62e20e7fe41ecf138e67c74c35baf.zip
pfsense-3ac8324f5ba62e20e7fe41ecf138e67c74c35baf.tar.gz
Put these logs under debug since that's their purpose
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r--etc/inc/auth.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 02f38ab..bf01ca9 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -1081,11 +1081,13 @@ function ldap_backed($username, $passwd, $authcfg) {
/* Person. To later be used by ldap_get_groups. */
/* that way we don't have to search twice. */
/*****************************************************************/
- log_auth(sprintf(gettext("Now Searching for %s in directory."), $username));
+ if ($debug)
+ log_auth(sprintf(gettext("Now Searching for %s in directory."), $username));
/* Iterate through the user containers for search */
foreach ($ldac_splits as $i => $ldac_split) {
/* Make sure we just use the first user we find */
- log_auth(sprintf(gettext('Now Searching in server %1$s, container %2$s with filter %3$s.'), $ldapname, $ldac_split, $ldapfilter));
+ if ($debug)
+ log_auth(sprintf(gettext('Now Searching in server %1$s, container %2$s with filter %3$s.'), $ldapname, $ldac_split, $ldapfilter));
if ($ldapscope == "one")
$ldapfunc = "ldap_list";
else
OpenPOWER on IntegriCloud