Ok, I am sorry... I found the port openvpn_bsdauth via-env never worked, but using via-file and tmp-dir, I am now able to auth.
Does a similar solution exist for additional MFA-solutions? Google Auth? Regards, Lars. On Mon, Aug 15, 2022 at 7:47 PM Lars Bonnesen <[email protected]> wrote: > Setting up an OpenVPN-box in a network with no central user database, and > I would like an extra layer of security than just the certificate. > > As I can't use LDAP (unless I install this), I found the auth-pam.pl > script, but using this OpenVPN complains: > > Can't locate Authen/PAM.pm in @INC (you may need to install the > Authen::PAM module) (@INC contains: /usr/at /etc/openvpn/auth-pam.pl line > 30. > > Googled som non-OpenBSD ways to install the Authen::PAM module, but they > all failed. Anyone has succeeded in this? > > Regards, Lars >

