I have successfully configured pam_radius
on a Ubuntu client so that users are asked for an OTP. The radius server is an NPS with Azure MFA extension. The OTP is checked against Azure.
It works well, but I'd rather not send the user credentials to the NPS, so that only the OTP is checked. Also it would be nice to ask the user for OTP before the password.
I read elsewhere (https://learn.microsoft.com/en-us/answers/questions/20921/mfa-nps-error.html) that if we choose "Accepting users without validating credentials" on the NPS (in addition to "skip_passwd" on pam_radius_auth configuration), this would work - but it doesn't.
Is this because pam_radius will always try to authenticate with both password and OTP? Or maybe NPS will always ask for a password? But on the other hand, on pam_radius_auth documentation it says that skip_pass will send a null as password in that case, so why am I still asked for the password?
Best, Francis