Skip to content
Snippets Groups Projects
Commit e5236827 authored by Côme Bernigaud's avatar Côme Bernigaud
Browse files

Fixed: #2282 fixed cn regexp

parent 744bc05f
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ use Pod::Usage;
my $cn = "" ;
my $branch = "cn=schema,cn=config";
my $help = 0;
my $help = 0;
# Process command-line
......@@ -34,7 +34,7 @@ if ($cn eq '') {
$cn = $ARGV[0];
die "Error: $cn is not a file\n" unless -f $cn;
$cn =~ s|^.+/([^/]+)\.[^.]+$|$1|;
$cn =~ s|^(.*/)?([^/]+)\.[^.]+$|$2|;
}
# [openldap.ldif]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment