tnandor85 Hi, Is it possible to assigne username to cert or cert to username? Currently I can connect to vpn server with 1 cert and all AD user+pass (member of specified group). Thanks in advance!
tnandor85 openvpn server config include this line, you should install openvpn-auth-ldap package plugin /usr/lib/openvpn/openvpn-auth-ldap.so "/etc/openvpn/auth/auth-ldap.conf" <LDAP> # LDAP server URL URL ldap://domain controller ip:389 BindDN "CN=ldapsyncusername,DC=example,DC=com" Password "<password of ldapsyncuser>" Timeout 15 TLSEnable no FollowReferrals no </LDAP> <Authorization> BaseDN "OU=Users or anything else,DC=example,DC=com" SearchFilter "(sAMAccountName=%u)" RequireGroup True <Group> BaseDN "OU=Users or anything else,DC=example,DC=com"" SearchFilter "(|(cn=Group of VPN users))" MemberAttribute "member" </Group> </Authorization>