NetworkManager don't ask for TOTP via OpenVPN

I need to connect to an OpenVPN Network which has TOTP Authentication activated.

If I run the following command on CLI, everything work as expected:

openvpn --config /tmp/profile-userlocked-ueiae-suiae.ovpn

It starts a process in CLI which ask me for Username, Password and the TOTP key:

So I’ve imported the ovpn file into my network-manager and click connect.
Then I’ve been asked via credentials dialog for username & password.

image

I enter same credentials as on CLI, then I click enter.
After this, another dialog appears, which just ask again for a password:
image

I’ve tried to enter the password again, I also try to enter the TOTP-Key there… nothing work at all.

Any Idea whats wrong here?

Ok, got it.
You need to:

  1. Open the Settings of your VPN-Connection
  2. add your Passwort to the “Password for PrivateKey” field, AND
  3. add your Username and Password down below to the general VPN Credentials

Only if I did it that way, I got the TOTP-Authentication Dialog which ask me for my 2fa Code.
If I didn’t do it that way, NetworkManager just freeze in an infinity loop of “password request” and finish with timeout after some attempts.

Hope this helps somebody.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.