-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support asking for passwords again #650
Comments
Oh, I see that |
|
I have that in the client configuration file already. Here's the non-cert bits of the configuration file in use (some configuration fields anonymized):
|
Could you post the client log? If the server sends AUTH_FAIL on MFA mismatch, the client should start over with another round of user name and password prompt. That's what |
Here are the logs around an MFA failure:
This might just be a conflation of the timeout issue that #649 is aiming to solve. |
Indeed, this is not actually an auth fail, just an expired password query (which is considered a "user does not want to proceed" situation by the openvpn core - same thing happens when you just press return at a password prompt in a terminal session). |
Ok, thanks. Should I try to plumb some option to |
Describe the bug
With MFA on the client side, it seems that OpenVPN only asks for a password once. If that fails, it just accepts that the authentication is invalid and doesn't ask again. Would it be possible to support sending a signal or some other mechanism to have a running instance ask for a password again?
To Reproduce
Have an MFA setup. I'm using a
systemd
-launched instance on the client side. It uses systemd's password authentication mechanism. I have a PR (#649) to remove the timeout, but even without it, if I get it wrong (e.g., enter a code just as it is invalidated or make a typo), I am never asked for the password again. It'd be nice if it would do so after a timeout (just like it does after the system comes back from being suspended and reconnecting) or I could send it a signal to prompt for authentication again.Expected behavior
When asking for authentication information, ask again if something goes wrong.
Version information (please complete the following information):
The text was updated successfully, but these errors were encountered: