Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
OpenVPN + TOTP. How to get QR code?
« previous
next »
Print
Pages: [
1
]
Author
Topic: OpenVPN + TOTP. How to get QR code? (Read 4725 times)
dym8
Newbie
Posts: 13
Karma: 1
OpenVPN + TOTP. How to get QR code?
«
on:
June 07, 2021, 04:18:45 pm »
Hello.
I have OpenVPN server setup and TOTP authentication is enabled. But when user setups his Google Authenticator I have to make QR-code for him by myself. Is there way to get QR-code by an user himself without my action?
Thank you.
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: OpenVPN + TOTP. How to get QR code?
«
Reply #1 on:
June 07, 2021, 04:43:00 pm »
The feature was added in 21.1:
https://github.com/opnsense/changelog/blob/6bdcd81f348e5171bbee6240666404525c990f14/community/21.1/21.1#L49
You can find the setting under System: Settings: Administration: User OTP seed. Select a group to permit OTP regeneration and then go to Lobby: Password page with the respective user to view the QR code once while creating a new token.
Cheers,
Franco
Logged
dym8
Newbie
Posts: 13
Karma: 1
Re: OpenVPN + TOTP. How to get QR code?
«
Reply #2 on:
June 08, 2021, 09:47:12 am »
Thank you.
But I didn't understand how it can helps me. Can you describe step by step?
What I did.
1. I created a new AD user.
2. I imported this one to Opnsens here System > Access > Users
3. I created a new group OTP and selected it here System> Settings> Administration > User OTP seed
4. I added a new user into this group
5. I tried to login by this user into Lobby and got Wrong username or password
The log file shows "user testvpn could not authenticate for WebGui. [using OPNsense\Auth\Services\WebGui + OPNsense\Auth\Local]"
What do I have to do?
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: OpenVPN + TOTP. How to get QR code?
«
Reply #3 on:
June 08, 2021, 10:53:46 am »
Obviously you need to let the user log in on the GUI with the password page privilege in order to serve a a new OTP token...
Cheers,
Franco
Logged
dym8
Newbie
Posts: 13
Karma: 1
Re: OpenVPN + TOTP. How to get QR code?
«
Reply #4 on:
June 08, 2021, 03:51:15 pm »
Thank you so much for your help. Well done.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
OpenVPN + TOTP. How to get QR code?