Hi all,
made now an package update which includes also an extended script which can be found in here --> https://gitlab.com/ummeegge/google-authenticator-openvpn/-/blob/master/build_files/CONF/google-auth-openvpn/google-auth-adduser .
Script includes now:
- Add new user
- Display QR-Code or secret for already existing users
- Delete existing user
- List all users
- Modify OpenVPN server and client config
Script can surely be extended and can surely even be made better but for the first this is how it goes.
- The PAM profile is also included in the package.
- A new directory under /var/ipfire/ovpn/accounting/google-authenticator will be created which is the home for all new OTP-OpenVPN users.
Packages are now here --> https://people.ipfire.org/~ummeegge/google-authenticator-openvpn/ located.
All build files can be found in here --> https://gitlab.com/ummeegge/google-authenticator-openvpn for those of you who want to build in their environment. Since the uninstall.sh scripts do not use Pakfire but uninstalls the files too, it is currently not on IPFire Git.
Best,
Erik