From: hno <> Date: Sun, 7 Jul 2002 02:54:36 +0000 (+0000) Subject: Cleaned up msnt_auth syslog events X-Git-Tag: SQUID_3_0_PRE1~915 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=17e626a31f22c155716d2d7fef6137f6cb67eb39;p=thirdparty%2Fsquid.git Cleaned up msnt_auth syslog events --- diff --git a/helpers/basic_auth/MSNT/msntauth.c b/helpers/basic_auth/MSNT/msntauth.c index 93ca65f01a..8f9a94e394 100644 --- a/helpers/basic_auth/MSNT/msntauth.c +++ b/helpers/basic_auth/MSNT/msntauth.c @@ -94,8 +94,10 @@ main(int argc, char **argv) err = 1; continue; } - if (err) + if (err) { + syslog(LOG_WARNING, "oversized message"); goto error; + } /* * extract username and password. @@ -119,11 +121,13 @@ main(int argc, char **argv) * Check if user is explicitly denied or allowed. * If user passes both checks, they can be authenticated. */ - if (Check_user(username) == 1) + if (Check_user(username) == 1) { + syslog(LOG_INFO, "'%s' denied", username); puts("ERR"); - else if (QueryServers(username, password) == 0) + } else if (QueryServers(username, password) == 0) puts("OK"); else { + syslog(LOG_INFO, "'%s' login failed", username); error: puts("ERR"); } diff --git a/helpers/basic_auth/MSNT/usersfile.c b/helpers/basic_auth/MSNT/usersfile.c index 6b1320980d..53d62ac0b9 100644 --- a/helpers/basic_auth/MSNT/usersfile.c +++ b/helpers/basic_auth/MSNT/usersfile.c @@ -154,10 +154,8 @@ Check_userlist(usersfile * uf, char *User) sizeof(*uf->names), name_cmp); if (NULL == p) { - syslog(LOG_DEBUG, "User %s not found", User); return 0; } - syslog(LOG_DEBUG, "User %s found", User); return 1; }