summaryrefslogtreecommitdiff
path: root/source4/dsdb/tests
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-29 19:39:17 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-03 12:05:13 +0200
commitf9244a15c78d73bbccf2c623799584c1d65d8310 (patch)
treefc48b52c2b8fd7102578ceecbab730dca39119aa /source4/dsdb/tests
parent14c660da323c8596ae4babc7f94d51bd793c1b71 (diff)
downloadsamba-f9244a15c78d73bbccf2c623799584c1d65d8310.tar.gz
samba-f9244a15c78d73bbccf2c623799584c1d65d8310.tar.bz2
samba-f9244a15c78d73bbccf2c623799584c1d65d8310.zip
s4:ldap.py - fix "system only" test
A part was missing
Diffstat (limited to 'source4/dsdb/tests')
-rwxr-xr-xsource4/dsdb/tests/python/ldap.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/dsdb/tests/python/ldap.py b/source4/dsdb/tests/python/ldap.py
index e4c163304f..f214d19512 100755
--- a/source4/dsdb/tests/python/ldap.py
+++ b/source4/dsdb/tests/python/ldap.py
@@ -355,6 +355,14 @@ class BasicTests(unittest.TestCase):
except LdbError, (num, _):
self.assertEquals(num, ERR_UNWILLING_TO_PERFORM)
+ try:
+ self.ldb.add({
+ "dn": "cn=testsecret,cn=system," + self.base_dn,
+ "objectclass": "secret"})
+ self.fail()
+ except LdbError, (num, _):
+ self.assertEquals(num, ERR_UNWILLING_TO_PERFORM)
+
self.delete_force(self.ldb, "cn=ldaptestobject," + self.base_dn)
self.delete_force(self.ldb, "cn=testsecret,cn=system," + self.base_dn)