I have an OpenVPN server that authenticates against a single AD domain.
Here is my auth-ldap.conf that is used with OpenVPN
<LDAP>
URL ldap://ad1.test.company:389,ldap://ad2.test.company:389
BindDN "CN=openvpnauth,CN=Users,DC=test,DC=company"
Password "A!thP123w00rd"
Timeout 15
TLSEnable no
FollowReferrals yes
</LDAP>
<Authorization>
BaseDN "DC=test,DC=company"
SearchFilter "(sAMAccountName=%u)"
RequireGroup true
<Group>
BaseDN "CN=Users,DC=test,DC=company"
SearchFilter "(cn=VPN Users)"
MemberAttribute "member"
</Group>
So, the above authenticates users against AD and works as designed.
It searches for the user group "VPN Users" within "CN=Users,DC=test,DC=company"
(the default '/Users' OU)
If the user has the proper group set VPN Users
then it allows a user in!
I want to add a user to another separate OU, for example: Team1/Desktop-users/Standard users could be my new OU with users in it. I want to allow users in that OU as well as the original one.
Would this be as easy as adding another <Group>
object in the config?