verify-cn: garde la backward comp tout de même

This commit is contained in:
Daniel STAN 2015-08-05 20:02:59 +02:00
parent 4504a3925d
commit 818ff14d56

View file

@ -37,7 +37,7 @@ if ($depth == 0) {
# If so, parse out the common name substring in
# the X509 subject string.
if ($x509 =~ / CN=([^,]+)/) {
if (($x509 =~ / CN=([^,]+)/) || ($x509 =~ /\/CN=([^\/]+)/)) {
$cn = $1;
# Accept the connection if the X509 common name
# string matches the passed cn argument.