git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9676c26
)
dbchecker: when fixing a bad GUID in a DN, search by the string DN
author
Andrew Tridgell
<tridge@samba.org>
Wed, 22 Jun 2011 10:53:44 +0000
(20:53 +1000)
committer
Matthieu Patou
<mat@samba.org>
Wed, 22 Jun 2011 18:13:08 +0000
(20:13 +0200)
source4/scripting/python/samba/dbchecker.py
patch
|
blob
|
history
diff --git
a/source4/scripting/python/samba/dbchecker.py
b/source4/scripting/python/samba/dbchecker.py
index 38c35492457a3a02554c0ff75d027697a3e41200..2594e9a1fe139b2d582a818d6a4ce89a3e115ebd 100644
(file)
--- a/
source4/scripting/python/samba/dbchecker.py
+++ b/
source4/scripting/python/samba/dbchecker.py
@@
-153,7
+153,7
@@
class dbcheck(object):
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))
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"])
except ldb.LdbError, (enum, estr):
self.report("unable to find object for DN %s - cannot fix (%s)" % (dsdb_dn.dn, estr))