diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-06-22 20:53:44 +1000 |
---|---|---|
committer | Matthieu Patou <mat@samba.org> | 2011-06-22 20:13:08 +0200 |
commit | 6b939f4a9c19cd868ac1b6d77cc26662e2726e8c (patch) | |
tree | da48dc984902a77c6dcc504963de667785f18f96 /source4/scripting | |
parent | 9676c26fdd7ca53405abd06f58ae40d39d818e4d (diff) | |
download | samba-6b939f4a9c19cd868ac1b6d77cc26662e2726e8c.tar.gz samba-6b939f4a9c19cd868ac1b6d77cc26662e2726e8c.tar.bz2 samba-6b939f4a9c19cd868ac1b6d77cc26662e2726e8c.zip |
dbchecker: when fixing a bad GUID in a DN, search by the string DN
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/dbchecker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/dbchecker.py b/source4/scripting/python/samba/dbchecker.py index 38c3549245..2594e9a1fe 100644 --- 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)) |