Commit 655f2216 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #5474 Create workstation branch if missing when migrating winstation

parent 8d95785f
......@@ -1488,7 +1488,7 @@ sub migrate_winstations
$dn_old =~ m/^[^,]+,.*$systemrdn,(.+)$/ or die "Could not parse dn ".$dn_old."\n";
my $entrybase = $1;
if (!branch_exists($ldap, "$workstationrdn,$entrybase")) {
if ($workstationrdn =~ m/^([^,]),([^,])$/) {
if ($workstationrdn =~ m/^([^,]+),([^,]+)$/) {
if (!branch_exists($ldap, "$2,$entrybase")) {
create_branch($ldap, $entrybase, $2);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment