mirror of
https://github.com/dkmstr/openuds.git
synced 2025-03-11 00:58:39 +03:00
Refactor Radius MFA to handle MFA identifier and strip domain from username
This commit is contained in:
parent
14a58dc423
commit
1bf44bd5a2
@ -171,7 +171,9 @@ class RadiusOTP(mfas.MFA):
|
||||
if self.all_users_otp.value:
|
||||
return mfas.MFA.RESULT.OK
|
||||
|
||||
# The identifier has preference over username, but normally will be empty
|
||||
# The identifier has preference over username
|
||||
# MFA identifier will be normally be empty, unless the auhenticator provides it
|
||||
# I.E. The Radius Authenticator will provide the user that logged into the Radius Server
|
||||
username = identifier or username
|
||||
|
||||
# Remove domain part from username if needed
|
||||
|
Loading…
x
Reference in New Issue
Block a user