Hi,
I've tried to get the pretty nice solution with the script openvpn-super.pl ready in my environment, but it failed every time. After spending some time I found the issue and would like letting you know about it in order let you run not into the same issue
In my environment the the name of the group looks like this (configured in the config file):
...
group = cn=VPNUsers,ou=Security Groups,ou=MyBusiniss, dc=mydomain-test1,dc=local
...
The problem is caused by the hyphen in the dc entry "mydomain-test1" which will let the perl script to fail. The solution is pretty simply, but requires some perl or at least scripting experiences. To solve the issue you need to change the regular expression in line 457 of script openvpn-super.pl
Please change from
if ($_ =~ m/^\s*group\s*=\s*/[\w|=| |,]+)\s*$/i) {
to
if ($_ =~ m/^\s*group\s*=\s*/[\w|=| |,|-]+)\s*$/i) {
This solves the issue and will allow you to use domain name as I did
Cheers,
Joachim
Problems while connecting to AD
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
- krzee
- Forum Team
- Posts: 728
- Joined: Fri Aug 29, 2008 5:42 pm
Re: Problems while connecting to AD
where is this script?
-
- OpenVpn Newbie
- Posts: 2
- Joined: Mon Feb 14, 2011 2:18 pm
- krzee
- Forum Team
- Posts: 728
- Joined: Fri Aug 29, 2008 5:42 pm
Re: Problems while connecting to AD
thank you, cool stuff!