Dear Community,
today I installed an OpenVPN Server so that we can work in homeoffice.
I'm using Ubuntu 18.04 with OpenVPN 2.4.4
I created the certificates and installed the openvpn-auth-ldap plugin.
Everything is working fine, I can connect with users who are in the correct AD-Group and others cannot.
But there ist something strange in my log, every few seconds i get this:
Mar 24 17:37:27 openvpn systemd[1]: Stopped OpenVPN connection to auth-ldap.
Mar 24 17:37:27 openvpn systemd[1]: Starting OpenVPN connection to auth-ldap...
Mar 24 17:37:27 openvpn ovpn-auth-ldap[4629]: Options error: Unrecognized option or missing or extra parameter(s) in /etc/openvpn/auth-ldap.conf:1: LDAP (2.4.4)
Mar 24 17:37:27 openvpn ovpn-auth-ldap[4629]: Use --help for more information.
Mar 24 17:37:27 openvpn systemd[1]: openvpn@auth-ldap.service: Main process exited, code=exited, status=1/FAILURE
Mar 24 17:37:27 openvpn systemd[1]: openvpn@auth-ldap.service: Failed with result 'exit-code'.
Mar 24 17:37:27 openvpn systemd[1]: Failed to start OpenVPN connection to auth-ldap.
Mar 24 17:37:32 openvpn systemd[1]: openvpn@auth-ldap.service: Service hold-off time over, scheduling restart.
Mar 24 17:37:32 openvpn systemd[1]: openvpn@auth-ldap.service: Scheduled restart job, restart counter is at 545.
Here is my auth-ldap.conf:
<LDAP>
URL ldap://192.168.x.y
BindDN cn=ldap,ou=user,dc=mydomain,dc=local
Password MyPassword
Timeout 15
</LDAP>
<Authorization>
BaseDN "dc=mydomain,dc=local"
SearchFilter "sAMAccountName=%u"
RequireGroup true
<Group>
BaseDN "dc=mydomain,dc=local"
SearchFilter "cn=OpenVPN"
MemberAttribute Member
</Group>
</Authorization>
I checked the auth-ldap.conf several times and typed it again and again, tried different settings without success.
Is there anyone who has any idea what is wrong with this settings?
Many Thanks!
Kind Regards
Chris