From 131be8da0fa2db11b91cb08a182a524832db1d41 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sat, 19 Jun 2010 19:33:16 +0200 Subject: s4:instancetype LDB module - "instanceType" is single-valued - MS-ADTS 3.1.1.5.2.2 --- source4/lib/ldb/tests/python/ldap.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source4/lib/ldb/tests') diff --git a/source4/lib/ldb/tests/python/ldap.py b/source4/lib/ldb/tests/python/ldap.py index 40cbb9feb3..db1a47ce64 100755 --- a/source4/lib/ldb/tests/python/ldap.py +++ b/source4/lib/ldb/tests/python/ldap.py @@ -652,6 +652,15 @@ class BasicTests(unittest.TestCase): """Tests the 'instanceType' attribute""" print "Tests the 'instanceType' attribute""" + try: + self.ldb.add({ + "dn": "cn=ldaptestgroup,cn=users," + self.base_dn, + "objectclass": "group", + "instanceType": ["0", "1"]}) + self.fail() + except LdbError, (num, _): + self.assertEquals(num, ERR_UNWILLING_TO_PERFORM) + self.ldb.add({ "dn": "cn=ldaptestgroup,cn=users," + self.base_dn, "objectclass": "group"}) -- cgit