mirror of
https://github.com/samba-team/samba.git
synced 2025-07-30 19:42:05 +03:00
dbchecker: when fixing a bad GUID in a DN, search by the string DN
This commit is contained in:
committed by
Matthieu Patou
parent
9676c26fdd
commit
6b939f4a9c
@ -153,7 +153,7 @@ class dbcheck(object):
|
|||||||
def err_incorrect_dn_GUID(self, dn, attrname, val, dsdb_dn, errstr):
|
def err_incorrect_dn_GUID(self, dn, attrname, val, dsdb_dn, errstr):
|
||||||
self.report("ERROR: %s component for %s in object %s - %s" % (errstr, attrname, dn, val))
|
self.report("ERROR: %s component for %s in object %s - %s" % (errstr, attrname, dn, val))
|
||||||
try:
|
try:
|
||||||
res = self.samdb.search(base=dsdb_dn.dn, scope=ldb.SCOPE_BASE,
|
res = self.samdb.search(base=str(dsdb_dn.dn), scope=ldb.SCOPE_BASE,
|
||||||
attrs=[], controls=["extended_dn:1:1"])
|
attrs=[], controls=["extended_dn:1:1"])
|
||||||
except ldb.LdbError, (enum, estr):
|
except ldb.LdbError, (enum, estr):
|
||||||
self.report("unable to find object for DN %s - cannot fix (%s)" % (dsdb_dn.dn, estr))
|
self.report("unable to find object for DN %s - cannot fix (%s)" % (dsdb_dn.dn, estr))
|
||||||
|
Reference in New Issue
Block a user