diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2012-11-18 00:30:56 +0100 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2012-11-18 14:10:19 +0100 |
commit | 9a98a89e794f4345a615d1ab2035265b42e30919 (patch) | |
tree | 5064780960a5e9941809e3178938e59d672d4709 | |
parent | b4227df690fb7a989ead9b3928ebaaaa34b495eb (diff) | |
download | pfsense-9a98a89e794f4345a615d1ab2035265b42e30919.zip pfsense-9a98a89e794f4345a615d1ab2035265b42e30919.tar.gz |
authentication, don't log 'errors' on normal procedure
-rw-r--r-- | etc/inc/auth.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index dc9e8aa..02f38ab 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -1081,11 +1081,11 @@ 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_error(sprintf(gettext("Now Searching for %s in directory."), $username)); + 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_error(sprintf(gettext('Now Searching in server %1$s, container %2$s with filter %3$s.'), $ldapname, $ldac_split, $ldapfilter)); + 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 @@ -1123,7 +1123,7 @@ function ldap_backed($username, $passwd, $authcfg) { return false; } - log_error(sprintf(gettext('Logged in successfully as %1$s via LDAP server %2$s with DN = %3$s.'), $username, $ldapname, $userdn)); + 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); |