summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-04-14 13:32:49 +1000
committerStefan Metzmacher <metze@samba.org>2013-07-30 12:55:00 +0200
commit7615b2549d9549683978cb3e85b926e2ba63e294 (patch)
treeedb2cb6424a49450eafe40d3928f2e359b352db4 /python
parentf2afdb61698c37389be286f9443471d4aeba49b8 (diff)
downloadsamba-7615b2549d9549683978cb3e85b926e2ba63e294.tar.gz
samba-7615b2549d9549683978cb3e85b926e2ba63e294.tar.bz2
samba-7615b2549d9549683978cb3e85b926e2ba63e294.zip
samba-tool dbcheck: Correctly remove deleted DNs in dbcheck
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
Diffstat (limited to 'python')
-rw-r--r--python/samba/dbchecker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/dbchecker.py b/python/samba/dbchecker.py
index e88f876bb0..8b175c2b71 100644
--- a/python/samba/dbchecker.py
+++ b/python/samba/dbchecker.py
@@ -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)