Active directory and user groups

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
gondolin
OpenVpn Newbie
Posts: 12
Joined: Mon Nov 22, 2010 3:06 pm

Active directory and user groups

Post by gondolin » Thu Jan 19, 2012 7:08 am

I have a working opeVPN AS, but when I configure through the webinterface to use Ldap for Authentication on a Windows 2008-R2, It work as long as I point it out to a OU. when I change to a security group in a OU there are Ldap authenticate errors.

Has anyone seen this kind of behavoiur or this setup ?

tx

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: Active directory and user groups

Post by Mimiko » Wed Jan 25, 2012 8:09 pm

What errors dou you see? If this is related to LDAP would it best to ask on LDAP support forum?

gondolin
OpenVpn Newbie
Posts: 12
Joined: Mon Nov 22, 2010 3:06 pm

Re: Active directory and user groups

Post by gondolin » Mon Jan 30, 2012 1:14 pm

Code: Select all

LDAP exception on ldap://172.16.1.11/ (facility='search ('cn=ovpn,ou=vpn,ou=Users-Home,dc=xxx,dc=net', 2, '(sAMAccountName=xxx)')'): user not found: 

cn=ovpn is a group and the users are configured for that group.

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: Active directory and user groups

Post by Mimiko » Tue Jan 31, 2012 7:49 am

As I fought, "user not found" is stating that OpenVPN invokes connection to LDAP server correctly and LDAP server returns a normal responce that the user does not exists. Check LDAP DB to be assure that the user "ovpn" is really in ou=Users-Home.

gondolin
OpenVpn Newbie
Posts: 12
Joined: Mon Nov 22, 2010 3:06 pm

Re: Active directory and user groups

Post by gondolin » Tue Jan 31, 2012 8:12 am

I think i'm doing something wrong here. ovpn is not a user but a group.
All my users are in the ou=Users-Home, and I create groups for each application with the nessesary users.

According to the properties is the windows LDAP I must use the 'cn=ovpn,ou=vpn,ou=Users-Home,dc=xxx,dc=net'

Post Reply