From: Michael Tremer Date: Wed, 25 Dec 2013 14:12:34 +0000 (+0100) Subject: openvpn: Fix verify script. X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=4176a1badace1fd2c06c375f9c2d7562edee870a 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). --- diff --git a/config/ovpn/verify b/config/ovpn/verify index 44ed1105d..1a1fcb501 100644 --- a/config/ovpn/verify +++ b/config/ovpn/verify @@ -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"){