Hello,
try according to
https://developers.yubico.com/yubico-pam/to set-up 2-factor-authentifications on FreeBSD with: openVPN with LDAP-Authentification and Yubikey.
But get error message: PLUGIN_CALL: plugin function PLUGIN_AUTH_USER_PASS_VERIFY failed with status 1.
---
Mon Sep 5 14:47:05 2016 172.23.3.8:35857 TLS: Initial packet from [AF_INET]172.23.3.8:35857, sid=159c136d 2cb1a27d
Mon Sep 5 14:47:05 2016 172.23.3.8:35857 PLUGIN_CALL: POST openvpn-plugin-auth-pam.so/PLUGIN_AUTH_USER_PASS_VERIFY status=1
Mon Sep 5 14:47:05 2016 172.23.3.8:35857 PLUGIN_CALL: plugin function PLUGIN_AUTH_USER_PASS_VERIFY failed with status 1: openvpn-plugin-auth-pam.so
Mon Sep 5 14:47:05 2016 172.23.3.8:35857 TLS Auth Error: Auth Username/Password verification failed for peer
Mon Sep 5 14:47:05 2016 172.23.3.8:35857 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA
Mon Sep 5 14:47:05 2016 172.23.3.8:35857 Peer Connection Initiated with [AF_INET]172.23.3.8:35857
Mon Sep 5 14:47:07 2016 172.23.3.8:35857 PUSH: Received control message: 'PUSH_REQUEST'
Mon Sep 5 14:47:07 2016 172.23.3.8:35857 Delayed exit in 5 seconds
Mon Sep 5 14:47:07 2016 172.23.3.8:35857 SENT CONTROL [UNDEF]: 'AUTH_FAILED' (status=1)
Mon Sep 5 14:47:07 2016 172.23.3.8:35857 TLS Error: local/remote TLS keys are out of sync: [AF_INET]172.23.3.8:35857 [0]
Mon Sep 5 14:47:08 2016 172.23.3.8:35857 TLS Error: local/remote TLS keys are out of sync: [AF_INET]172.23.3.8:35857 [0]
Mon Sep 5 14:47:09 2016 172.23.3.8:35857 TLS Error: local/remote TLS keys are out of sync: [AF_INET]172.23.3.8:35857 [0]
Mon Sep 5 14:47:11 2016 172.23.3.8:35857 TLS Error: local/remote TLS keys are out of sync: [AF_INET]172.23.3.8:35857 [0]
Mon Sep 5 14:47:12 2016 172.23.3.8:35857 SIGTERM[soft,delayed-exit] received, client-instance exiting
---
openvpn.conf on Server:
plugin openvpn-plugin-auth-pam.so openvpn
If it changed to
plugin openvpn-plugin-auth-pam.so system-auth
then no error, but of it the authentification use local System user, which is not what I want: authetification against ldap server (1. factor) and Yubikey (2. factor).
Kind Regards
VedPac