summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-06-14 16:43:10 +1000
committerAndrew Tridgell <tridge@samba.org>2011-06-14 10:49:34 +0200
commitd575b2b0aba0aeaf73d82e2ed58150110db4025b (patch)
treefa2f0ad144ffba487de9eed0179f8c54199ef51e /source4/scripting/python
parent23202211050b3b3d41632d2bf2795249644d7e8a (diff)
downloadsamba-d575b2b0aba0aeaf73d82e2ed58150110db4025b.tar.gz
samba-d575b2b0aba0aeaf73d82e2ed58150110db4025b.tar.bz2
samba-d575b2b0aba0aeaf73d82e2ed58150110db4025b.zip
samba-tool: disable validation on removing an empty attribute in dbcheck
Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Jun 14 10:49:34 CEST 2011 on sn-devel-104
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/netcmd/dbcheck.py2
1 files changed, 1 insertions, 1 deletions
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