From ae9faaa89449cf25c2e5e8b51e64ceaacba01832 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Thu, 3 Jun 2010 18:05:52 +0200 Subject: s4:ldap.py - enhance the RDN name test to show that invalid "name" attributes are allowed on add operations --- source4/lib/ldb/tests/python/ldap.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/lib') diff --git a/source4/lib/ldb/tests/python/ldap.py b/source4/lib/ldb/tests/python/ldap.py index 66b1f28adb..156a42fe17 100755 --- a/source4/lib/ldb/tests/python/ldap.py +++ b/source4/lib/ldb/tests/python/ldap.py @@ -445,9 +445,11 @@ class BasicTests(unittest.TestCase): self.delete_force(self.ldb, "description=xyz,cn=users," + self.base_dn) + # a wrong "name" attribute is obviously tolerated self.ldb.add({ "dn": "cn=ldaptestgroup,cn=users," + self.base_dn, - "objectclass": "group"}) + "objectclass": "group", + "name": "ldaptestgroupx"}) m = Message() m.dn = Dn(ldb, "cn=ldaptestgroup,cn=users," + self.base_dn) -- cgit