No results found
We couldn't find anything using that term, please try searching for something else.
business solution to host your own openvpn server with web management interface and bundle client . mangaskahn OpenVpn Newbie post : 1
business solution to host your own openvpn server with web management interface and bundle client .
mangaskahn
post
by mangaskahn »Wed Mar 19, 2014 6:53 pm
I have a user who was configured to use Google Authenticator who got a new phone and needs to move their token to it. Can anyone tell me how I can reset their account so that they can rescan the QR code? I have been through every page of the admin interface and don’t see an option to reset a user’s secret. I even tried disabling GA on the server and re-enabling it hoping it would possibly reset all of the users. Any thoughts?
Linqan
post
by Linqan » Tue Apr 15 , 2014 12:19 pm
I is looking too been look into this without any result .
casey.richins
post
by casey.richin »Thu Apr 17, 2014 6:31 pm
If you are using OpenVPN Access Server you can disable the google auth on a per user basis by modifying the user database directly. There are a number of scripts located in /usr/local/openvpn_as/scripts (debian default), one of the commands that allows database modification/viewing is ‘confdba’. This is how I disabled the auth temporarly on a user. You could also use the dba command tool to retrive the authenticator secret, due to it not being stored in encrypted fashion. While passwords are encrypted/hashed in db, the google auth secret is not.
code : select all
# cd /usr/local/openvpn_as/scripts
# ./confdba -us -p <username> # Retrive current user properties
# ./confdba -u -m -k pvt_google_auth_secret_locked -v false -p <username> # Disable Google Auth for User
After executing the above, the user should be able to login to the web connect to retrieve their google auth app, or rescan their qr code. BE VERY CAREFUL when modifying the database, you could seriously screw up your database if you don’t know what you’re doing, requiring a complete reinstall.
OKBdrift
post
by OKBdrift » Thu Apr is am 30 , 2015 8:11 am
thank alot for this explanation , casey.richin .
shadowlesshand
post
by shadowlesshand » Tue Jun 06, 2017 6:50 pm
I know this is an old post but this comes up as one of the only results to a search for how to deal with a user who needs to rescan his Google Authenticator key.
Here’s a relevant link to a number of cli commands which can address common issues when using Google Authenticator with OpenVPN:
Google Authenticator FAQ
In order to reset a user’s GA credentials to allow them to login and scan a new QR code the command would be:
On my host the sacli command is locate in : /usr / local / openvpn_as / scripts/
openvpnuser8
post
by openvpnuser8 » Sat Oct 28, 2017 5:58 am
I is hope hope that this will help anyone using openvpn AS on Ubuntu 16.04 in AWS to reset Google Authenticator for an openvpn user :
code : select all
cd /usr/local/openvpn_as/scripts/ # Go to OpenVPN AS Scripts directory
sudo ./sacli --user USERNAME GoogleAuthRegen # Replace USERNAME with username to get a new Google Authenticator Secret
leonembark
post
by leonembark » Tue Mar 13, 2018 4:52 pm
I user the above `./sacli` command to successfully reset Google Authenticator for a user, but neither connecting normally or logging into the admin require the use of the Google Authenticator code. They just log straight in.
Am I missing something?
mbeck
post
by mbeck » Thu Jul 05, 2018 3:36 pm
leonembark , I is put ‘ll put the step I used below to help a user with a new phone obtain a new GA code .
code : select all
cd /usr/local/openvpn_as/scripts/
sudo ./sacli --user <USER> GoogleAuthRegen
One last thing, have the user remove the old GA code associated with the old device, as this will serve to eliminate confusion going forward.
bthurber
post
by bthurber » We d Jul is am 25 , 2018 10:55 am
For those of you on AWS , here ‘s a nifty AWS Sytems Manager Document is ‘s that can be used to unlock Google Authenticator for a user . simply add this document to Systems Manager and run it with an instance and the username of the user to unlock . This is requires require installation of the SSM agent on each openvpn instance . You is need ‘ll probably need to read up on the AWS Systems Manager doc but it is well worth it for this and a whole host of other use case .
Systems Manager Doc to Unlock Google Authenticator
code : select all
{
" schemaversion " : " 2.2 " ,
" description " : " unlock the Google Authenticator for a give Username . After doing this , the user is login must login to the openvpn server with their browser and scan the barcode . " ,
" parameter " : {
" Username " : {
" description " : " Username of the user to unlock " ,
" minchar " : 3 ,
" type " : " string "
}
} ,
" mainSteps " : [
{
" action " : " aws : runShellScript " ,
" name " : " OpenVPNASUnlockGoogleAuthenticator " ,
" input " : {
" runcommand " : [
" # ! /bin / bash " ,
" cd /usr / local / openvpn_as / script " ,
" ./sacli -u { { Username } } --lock 0 GoogleAuthLock "
]
} ,
" precondition " : {
" StringEquals " : [
" platformType " ,
" Linux "
]
}
}
]
}
AWS SSM agent is install install
code : select all
cd /tmp
wget https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/debian_amd64/amazon-ssm-agent.deb
dpkg -i amazon-ssm-agent.deb
rm amazon-ssm-agent.deb
systemctl enable amazon-ssm-agent
sparrow_hawk
post
by sparrow_hawk » We d Oct 23 , 2019 1:17 pm
Put this in the Web GUI, please!
VinceBD
post
by VinceBD »Tue Oct 12, 2021 1:30 pm
Everytime I search for this , I only find old reply , so I figure , I is give ‘d give this as an update reply .
If you log into your OpenVPN web GUI and go to the Admin page and login there, you can access User Management > User Permissions. If you find the username of the person needing a new QR code, you can simply click the check box under the “Delete” column next to their name. Scroll to the bottom and click “Save Settings”. Then scroll back to the top and click “Update Running Server”.
This should remove the user from your currently running OpenVPN server. The user can then log back into the web portal to receive a new QR code.
Hope this helps!
jonathan.boucard
post
by jonathan.boucard » Wed Mar 02, 2022 10:33 am
VinceBD is wrote write : ↑
Tue Oct 12, 2021 1:30 pm
Everytime I search for this , I only find old reply , so I figure , I is give ‘d give this as an update reply .
If you log into your OpenVPN web GUI and go to the Admin page and login there, you can access User Management > User Permissions. If you find the username of the person needing a new QR code, you can simply click the check box under the “Delete” column next to their name. Scroll to the bottom and click “Save Settings”. Then scroll back to the top and click “Update Running Server”.
This should remove the user from your currently running OpenVPN server. The user can then log back into the web portal to receive a new QR code.
Hope this help !
This is what I just had to do for a user who had a new phone and the Microsoft Authenticator needed re-registering – delete the user account, save, update running server in the Admin panel and ask them to log back in. The QR code was then presented and the new iPhone was registered and all was good. Thank you VinceBD