radutrambitas / openvpn-auth-ldap

Automatically exported from code.google.com/p/openvpn-auth-ldap
Other
1 stars 1 forks source link

Problem with dot inside username ... #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, 

I have a problem with account with dot inside. From example when I try to check 
plugin configuration and put username: piotr everything works ok:

./testplugin /usr/local/etc/openvpn/auth/auth-ldap.conf
Username: piotr
Password: 
Authorization Succeed!
client-connect succeed!
client-disconnect succeed!

, but when I put username with dot inside: piotr.xyz (user exist in LDAP and is 
member of vpnUsers) the plugin show: 

./testplugin /usr/local/etc/openvpn/auth/auth-ldap.conf
Username: piotr.xyz
Password:
LDAP user "piotr.xyz" was not found.
Authorization Failed!
LDAP user "piotr.xyz" was not found.
client-connect failed!
LDAP user "piotr.xyz" was not found.
client-disconnect failed!

My auth section config:

<Authorization>
        BaseDN          "cn=users,dc=bbb,dc=aaa"
        SearchFilter    "sAMAccountName=%u"
        RequireGroup    true
        <Group>
                BaseDN          "cn=users,dc=bbb,dc=aaa"
                SearchFilter    "cn=vpnUsers"
                MemberAttribute Member
        </Group>
</Authorization>

Anybody can help me? :)

Original issue reported on code.google.com by piotr.sa...@gmail.com on 3 Feb 2011 at 9:06