}
if (pairfind(request->config_items, PW_AUTH_TYPE, 0)) {
- RDEBUG2("Found existing Auth-Type. Not changing it.");
+ RDEBUG2("WARNING: Auth-Type already set. Not setting to MS-CHAP");
return RLM_MODULE_NOOP;
}
PW_MSCHAP_CHALLENGE,
VENDORPEC_MICROSOFT);
if (!challenge) {
- RDEBUG2("No MS-CHAP-Challenge in the request");
+ RDEBUG("ERROR: You set 'Auth-Type = MS-CHAP' for a request that does not contain any MS-CHAP attributes!");
return RLM_MODULE_REJECT;
}
chap = 2;
} else { /* Neither CHAPv1 or CHAPv2 response: die */
- radlog_request(L_AUTH, 0, request, "No MS-CHAP response found");
+ RDEBUG("ERROR: You set 'Auth-Type = MS-CHAP' for a request that does not contain any MS-CHAP attributes!");
return RLM_MODULE_INVALID;
}