Skip to content

Handle management-client-auth after plugin #959

@joanandk

Description

@joanandk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions