]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Cleaned up msnt_auth syslog events
authorhno <>
Sun, 7 Jul 2002 02:54:36 +0000 (02:54 +0000)
committerhno <>
Sun, 7 Jul 2002 02:54:36 +0000 (02:54 +0000)
helpers/basic_auth/MSNT/msntauth.c
helpers/basic_auth/MSNT/usersfile.c

index 93ca65f01a7e18b5c4fbf876a17c531083ac54ac..8f9a94e3946709ba210da87b45c0942199023a5f 100644 (file)
@@ -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");
        }
index 6b1320980d0b9168a32920cddb5a6d2742a42c47..53d62ac0b91ae6ef95e4ff3e3616c424b7938052 100644 (file)
@@ -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;
 }