From d575b2b0aba0aeaf73d82e2ed58150110db4025b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 14 Jun 2011 16:43:10 +1000 Subject: samba-tool: disable validation on removing an empty attribute in dbcheck Autobuild-User: Andrew Tridgell Autobuild-Date: Tue Jun 14 10:49:34 CEST 2011 on sn-devel-104 --- source4/scripting/python/samba/netcmd/dbcheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/scripting/python/samba/netcmd/dbcheck.py b/source4/scripting/python/samba/netcmd/dbcheck.py index 7bbd4d21b6..7af210104c 100644 --- a/source4/scripting/python/samba/netcmd/dbcheck.py +++ b/source4/scripting/python/samba/netcmd/dbcheck.py @@ -51,7 +51,7 @@ def empty_attribute(self, dn, attrname): m.dn = dn m[attrname] = ldb.MessageElement('', ldb.FLAG_MOD_DELETE, attrname) try: - self.samdb.modify(m, ["relax:0"]) + self.samdb.modify(m, controls=["relax:0"], validate=False) except Exception, msg: print("Failed to remove empty attribute %s : %s" % (attrname, msg)) return -- cgit