Don't complain about unprintable characters in the user-supplied
authoraland <aland>
Mon, 29 Jan 2001 16:02:46 +0000 (16:02 +0000)
committeraland <aland>
Mon, 29 Jan 2001 16:02:46 +0000 (16:02 +0000)
password, UNLESS it's a 'Password' attribute.

i.e. Don't complain about CHAP-Password attributes, which are
ALWAYS unprintable.

src/main/auth.c

index 1d1a60c..00a7156 100644 (file)
@@ -531,7 +531,8 @@ int rad_authenticate(REQUEST *request)
                rad_authlog("Login incorrect", request, 0);
 
                /* double check: maybe the secret is wrong? */
-               if (debug_flag > 1) {
+               if ((debug_flag > 1) &&
+                   (auth_item->attribute == PW_PASSWORD)) {
                        u_char *p;
 
                  p = auth_item->strvalue;