summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-07-14 14:02:38 +1000
committerAndrew Tridgell <tridge@samba.org>2011-07-21 11:44:37 +1000
commit6257994848dd71784445222d67077ea52ced61f3 (patch)
tree0de9e6dad92e2a29c02d708bb9b292cd2eedfb08 /source4/scripting/python
parenta656b189b8e9b7d111fd8c4760107ea3ca4488f5 (diff)
downloadsamba-6257994848dd71784445222d67077ea52ced61f3.tar.gz
samba-6257994848dd71784445222d67077ea52ced61f3.tar.bz2
samba-6257994848dd71784445222d67077ea52ced61f3.zip
dbcheck: use string DN in delete when fixing broken strings DNs
this prevents the extended_dn_in module from 'fixing' the DN for us Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/dbchecker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/dbchecker.py b/source4/scripting/python/samba/dbchecker.py
index a1836cf98e..b16b75aa16 100644
--- a/source4/scripting/python/samba/dbchecker.py
+++ b/source4/scripting/python/samba/dbchecker.py
@@ -246,7 +246,7 @@ class dbcheck(object):
return
m = ldb.Message()
m.dn = dn
- m['old_value'] = ldb.MessageElement(val, ldb.FLAG_MOD_DELETE, attrname)
+ m['old_value'] = ldb.MessageElement(str(ldb.Dn(self.samdb, val)), ldb.FLAG_MOD_DELETE, attrname)
m['new_value'] = ldb.MessageElement(str(dsdb_dn), ldb.FLAG_MOD_ADD, attrname)
if self.do_modify(m, ["show_deleted:1"],
"Failed to fix incorrect DN string on attribute %s" % attrname):