diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-09-29 19:39:17 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-10-03 12:05:13 +0200 |
commit | f9244a15c78d73bbccf2c623799584c1d65d8310 (patch) | |
tree | fc48b52c2b8fd7102578ceecbab730dca39119aa | |
parent | 14c660da323c8596ae4babc7f94d51bd793c1b71 (diff) | |
download | samba-f9244a15c78d73bbccf2c623799584c1d65d8310.tar.gz samba-f9244a15c78d73bbccf2c623799584c1d65d8310.tar.bz2 samba-f9244a15c78d73bbccf2c623799584c1d65d8310.zip |
s4:ldap.py - fix "system only" test
A part was missing
-rwxr-xr-x | source4/dsdb/tests/python/ldap.py | 8 |
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) |