Print out real password, not username
authorAlan T. DeKok <aland@freeradius.org>
Tue, 29 Nov 2011 19:40:39 +0000 (20:40 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 4 Dec 2011 09:03:43 +0000 (10:03 +0100)
src/modules/rlm_unix/rlm_unix.c

index bf4ddb4..bd3784f 100644 (file)
@@ -363,7 +363,7 @@ static int unix_authenticate(void *instance, REQUEST *request)
        if (fr_crypt_check((char *) request->password->vp_strvalue,
                             (char *) vp->vp_strvalue) != 0) {
                radlog_request(L_AUTH, 0, request, "invalid password \"%s\"",
-                              request->username->vp_strvalue);
+                              request->password->vp_strvalue);
                return RLM_MODULE_REJECT;
        }
 #endif /* OSFFIA */