I have installed and configured
"OpenVPN" and "OpenLDAP", in addition, I also have their plugin "openvpn-auth-ldap" installed, and it is precisely with this last one that I have a problem. this is my configuration.
Code: Select all
<LDAP>
# LDAP server URL
URL ldap://x.x.x.x:389
# Bind DN (If your LDAP server doesn't support anonymous binds)
BindDN cn=admin,dc=mydomain,dc=com
# Bind Password
Password P@ssw0rd
# Network timeout (in seconds)
Timeout 15
# Enable Start TLS
TLSEnable no
# Follow LDAP Referrals (anonymously)
FollowReferrals no
</LDAP>
<Authorization>
# Base DN
BaseDN "ou=user,dc=mydomain,dc=com"
# User Search Filter
SearchFilter "(uid=%u)"
# Require Group Membership
RequireGroup true
<Group>
BaseDN "ou=group,dc=mydomain,dc=com"
SearchFilter "(cn=openVPN)"
MemberAttribute memberUid
</Group>
</Authorization>
RequireGroup false => all good
RequireGroup true => all wrong
Help me figure out what I'm doing wrong?
Thank you so much!