-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
I am using openvpn 2.7 in server mode with openvpn-auth-ldap and openvpn-auth-oauth2. My intention is
to have username + password authentication first, if this succeeds, then oauth2 authentication.
To achieve this, I use
plugin openvpn-auth-ldap.so ldap.conf
and
management /run/openvpn/server.sock
management-hold
management-client-auth
The client has auth-user-pass option set.
This works well if one enters the correct username and password and then the tfa in oauth2, the tunnel is up.
If the user enters the wrong password, the user can request mfa information.
Shouldn't this be blocked on the server side?
Expected behavior
On the server side: If the password from the client is wrong, block further authentication methods if --auth-user-pass-optional is not set.
Version information (please complete the following information):
- OS: Debian Trixie
- OpenVPN version: 2.7_rc5