break;
case PW_AUTH_TYPE_REJECT:
- request->reply->code = PW_CODE_ACCESS_REJECT;
- break;
+ request->reply->code = PW_CODE_ACCESS_REJECT;
+ break;
default:
break;
if (vp) rad_postauth(request);
}
+ if (request->reply->code == PW_CODE_ACCESS_CHALLENGE) {
+ fr_pair_delete_by_num(&request->config, PW_POST_AUTH_TYPE, 0, TAG_ANY);
+ vp = pair_make_config("Post-Auth-Type", "Challenge", T_OP_SET);
+ if (vp) rad_postauth(request);
+ }
+
if (request->reply->code == PW_CODE_ACCESS_ACCEPT) {
/*
* Check that there is a name which can be used