Skip to content

Example OpenVPN LDAP Module Config

sc250024 edited this page Jul 16, 2016 · 1 revision

LDAP Module Config

The package openvpn-auth-ldap enables LDAP authentication. The plugin is called by putting a line in your OpenVPN server configuration file like the following:

plugin /usr/lib/openvpn/openvpn-auth-ldap.so <path to LDAP cfg>

Where <path to LDAP cfg> contains information about how to connect to your LDAP server. Use the following configuration file as an example:

<LDAP>
	URL		ldap://10.0.0.10:389
	BindDN		"uid=openvpn-auth-user,dc=company,dc=com"
	Password	somepassword
	Timeout		15
	TLSEnable	no
	FollowReferrals yes
</LDAP>
<Authorization>
	BaseDN		"dc=company,dc=com"
	SearchFilter	"(&(uid=%u)(objectClass=inetOrgPerson))"
	RequireGroup	false
</Authorization>

Clone this wiki locally