From f9244a15c78d73bbccf2c623799584c1d65d8310 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Wed, 29 Sep 2010 19:39:17 +0200 Subject: s4:ldap.py - fix "system only" test A part was missing --- source4/dsdb/tests/python/ldap.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4/dsdb') 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) -- cgit