summaryrefslogtreecommitdiffstats
path: root/src/main/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/auth.c')
-rw-r--r--src/main/auth.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/auth.c b/src/main/auth.c
index 84889b8..2dc3e60 100644
--- a/src/main/auth.c
+++ b/src/main/auth.c
@@ -850,8 +850,8 @@ int rad_virtual_server(REQUEST *request)
break;
case PW_AUTH_TYPE_REJECT:
- request->reply->code = PW_CODE_ACCESS_REJECT;
- break;
+ request->reply->code = PW_CODE_ACCESS_REJECT;
+ break;
default:
break;
@@ -864,6 +864,12 @@ int rad_virtual_server(REQUEST *request)
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