From: Arran Cudbard-Bell Date: Thu, 29 Nov 2018 22:14:43 +0000 (-0500) Subject: Colourise more messages in rlm_pap X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=927cbb08b179d28efef7e25476bf044d904f1949;p=thirdparty%2Ffreeradius-server.git Colourise more messages in rlm_pap --- diff --git a/src/modules/rlm_pap/rlm_pap.c b/src/modules/rlm_pap/rlm_pap.c index 20d562518da..24fa7493452 100644 --- a/src/modules/rlm_pap/rlm_pap.c +++ b/src/modules/rlm_pap/rlm_pap.c @@ -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; }