Title: OpenVPN LDAP Authentication Post by: n8hack on Thursday 25 October 2012, 05:01:34 am Hey everybody. I have a set-up which I would like to get LDAP authentication working for OpenVPN.
I read a bunch of documentation about how to go about this and here is my /var/efw/openvpn/settings file Code: AUTHENTICATION_STACK=ldap,local unfortunately I can't connect with any LDAP user accounts as I just get invalid user error in the log. I can't see any attempt made by endian to query LDAP. Anyone have any ideas? I tried openvpn-auth as well from something I read which suggested openvpn-auth -i to test but in 2.5.1 all one gets is -i is an invalid switch. connecting with a local account works as usual. Endian 2.5.1 LDAPv3 server Title: Re: OpenVPN LDAP Authentication Post by: n8hack on Thursday 25 October 2012, 05:15:06 pm Never Mind. The search filter was for Windows Active Directory. OpenLDAP doesn't have SAMAccountName in the tree. Simple fix for anyone else looking to use this is
change the following line from my config: Code: LDAP_USER_SEARCHFILTER=(&(objectCategory=person)(objectClass=user)(SAMAccountName=%(u)s)) to : Code: LDAP_USER_SEARCHFILTER=(&(uid=%(u)s)) Mine works great now. |