samba-tool dbcheck: Correctly remove deleted DNs in dbcheck
authorAndrew Bartlett <abartlet@samba.org>
Sun, 14 Apr 2013 03:32:49 +0000 (13:32 +1000)
committerStefan Metzmacher <metze@samba.org>
Tue, 30 Jul 2013 10:55:00 +0000 (12:55 +0200)
The previous pattern never matched, as it was a typo.

Andrew Bartlett

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Jul 30 12:55:00 CEST 2013 on sn-devel-104

python/samba/dbchecker.py

index e88f876bb01fb32494d404cc1849a3057b7892e8..8b175c2b71522bc46b9638fdbd12b837f081407f 100644 (file)
@@ -271,7 +271,7 @@ newSuperior: %s""" % (str(from_dn), str(to_rdn), str(to_base)))
         """handle a missing target DN (both GUID and DN string form are missing)"""
         # check if its a backlink
         linkID = self.samdb_schema.get_linkId_from_lDAPDisplayName(attrname)
-        if (linkID & 1 == 0) and str(dsdb_dn).find('DEL\\0A') == -1:
+        if (linkID & 1 == 0) and str(dsdb_dn).find('\\0ADEL') == -1:
             self.report("Not removing dangling forward link")
             return
         self.err_deleted_dn(dn, attrname, val, dsdb_dn, dsdb_dn)