openvpn: Fix verify script.

Former versions of openvpn called the script where the arguments
in the certificate's common name where separated by /.
Now, those are separated by ", " (comma, space).
This commit is contained in:
Michael Tremer
2013-12-25 15:12:34 +01:00
parent 4c7fe35f9e
commit 4176a1bada

View File

@@ -30,8 +30,8 @@ my $CN = $ARGV[1];
exit 0 unless ($DEPTH eq "0");
# Strip the CN from the X509 identifier.
$CN =~ /\/CN=(.*)$/i;
$CN = $1;
$CN =~ /(\/|,\ )CN=(.*)$/i;
$CN = $2;
my %confighash = ();
if (-f "${General::swroot}/ovpn/ovpnconfig"){