I am running openvpn on a FreeBSD box in my network and authing against Zimbra LDAP. I have added the following plugin line to the openvpn.conf:
Code:
plugin /usr/local/lib/openvpn-auth-ldap.so auth-ldap.conf
and this is the contents of my auth-ldap.conf file (obviously changing your ldap URL and your base DN:
Code:
<LDAP>
# LDAP server URL
URL ldap://<hostname or IP>
# Bind DN (If your LDAP server doesn't support anonymous binds)
BindDN cn=config
# Bind Password
Password <password>
# Network timeout (in seconds)
Timeout 15
# Enable Start TLS
TLSEnable no
# Follow LDAP Referrals (anonymously)
FollowReferrals yes
</LDAP>
<Authorization>
# Base DN
BaseDN "ou=people,dc=example,dc=com"
# User Search Filter
SearchFilter "(uid=%u)"
</Authorization>