outpost/radius: set mfa answer for noncode-based mfa

This commit is contained in:
Matthias G 2023-12-29 19:36:36 +01:00
parent 0e1646ca1b
commit cec021117c
1 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,10 @@ func (rs *RadiusServer) Handle_AccessRequest(w radius.ResponseWriter, r *RadiusR
fe.Answers[flow.StagePassword] = rfc2865.UserPassword_GetString(r.Packet) fe.Answers[flow.StagePassword] = rfc2865.UserPassword_GetString(r.Packet)
if r.pi.MFASupport { if r.pi.MFASupport {
fe.CheckPasswordInlineMFA() fe.CheckPasswordInlineMFA()
} else {
// If code-based MFA is disabled StageAuthenticatorValidate answer is set to StagePassword answer.
// This allows flows with only a mfa stage
fe.Answers[flow.StageAuthenticatorValidate] = fe.Answers[flow.StagePassword]
} }
passed, err := fe.Execute() passed, err := fe.Execute()