1
0
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:
Adolfo Gómez García 2024-10-17 18:23:40 +02:00
parent 14a58dc423
commit 1bf44bd5a2
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -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