Commit b80e95ac authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3224 Adding a command to build a migration LDIF

parent 57a0807e
......@@ -1361,8 +1361,10 @@ sub ldif_deprecated {
print 'dn:'.$entry->dn."\n";
print "changetype:modify\n";
foreach my $attr (@$obsolete_attrs) {
if ($entries->exists($attr->{'name'})) {
print "delete:".$attr->{'name'}."\n-\n";
print "\n";
} else {
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