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