]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Colourise more messages in rlm_pap
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 29 Nov 2018 22:14:43 +0000 (17:14 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 29 Nov 2018 22:14:43 +0000 (17:14 -0500)
src/modules/rlm_pap/rlm_pap.c

index 20d562518da4576c40d4f85289432fa816605846..24fa7493452292439a880cbff66301881f4ab0a7 100644 (file)
@@ -1477,7 +1477,7 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authenticate(void *instance, UNUSED void
         *      No attribute was found that looked like a password to match.
         */
        if (!auth_func) {
-               RDEBUG("No password configured for the user.  Cannot do authentication");
+               RWDEBUG("No password configured for the user.  Cannot do authentication");
                return RLM_MODULE_FAIL;
        }
 
@@ -1486,13 +1486,9 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authenticate(void *instance, UNUSED void
         */
        rc = auth_func(inst, request, vp);
 
-       if (rc == RLM_MODULE_REJECT) {
-               RDEBUG("Passwords don't match");
-       }
+       if (rc == RLM_MODULE_REJECT) REDEBUG("Passwords don't match");
 
-       if (rc == RLM_MODULE_OK) {
-               RDEBUG("User authenticated successfully");
-       }
+       if (rc == RLM_MODULE_OK) RDEBUG("User authenticated successfully");
 
        return rc;
 }