March 3, 2022 . 1 MIN READ
Create/reset openvpn administrative local account with specified password:
cd /usr/local/openvpn_as/scripts./sacli –user “openvpn” –key “prop_superuser” –value “true” UserPropPut./sacli –user “openvpn” –key “user_auth_type” –value “local” UserPropPut./sacli –user “openvpn” –new_pass=<PASSWORD> SetLocalPassword./sacli start
Disable the deny login flag and reset MFA if required for the account:
./sacli –user “openvpn” –key “prop_deny” –value “false” UserPropPut./sacli –user “openvpn” –key “prop_google_auth” UserPropDel./sacli –user “openvpn” –lock 0 GoogleAuthRegen./sacli start
Reset the password lockout policy just in case it was triggered:
./sacli –key “vpn.server.lockout_policy.reset_time” –value “1” ConfigPut./sacli startsleep 2./sacli –key “vpn.server.lockout_policy.reset_time” ConfigDel./sacli start
Try signing in to the Admin Web UI again with openvpn and the password you specified. If you still cannot sign in, check the notes on older versions. You can contact us on our support ticket system for further assistance.
Reference: https://openvpn.net/vpn-server-resources/troubleshooting-authentication-related-problems/