diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-03 18:05:52 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-06 20:48:24 +0200 |
commit | ae9faaa89449cf25c2e5e8b51e64ceaacba01832 (patch) | |
tree | a11180f93d96be238419bb5554b2e6c66fef3ea4 /source4/lib | |
parent | dd64b253fcd9013788093f6b98ebd14ef2308619 (diff) | |
download | samba-ae9faaa89449cf25c2e5e8b51e64ceaacba01832.tar.gz samba-ae9faaa89449cf25c2e5e8b51e64ceaacba01832.tar.bz2 samba-ae9faaa89449cf25c2e5e8b51e64ceaacba01832.zip |
s4:ldap.py - enhance the RDN name test to show that invalid "name" attributes are allowed on add operations
Diffstat (limited to 'source4/lib')
-rwxr-xr-x | source4/lib/ldb/tests/python/ldap.py | 4 |
1 files changed, 3 insertions, 1 deletions
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) |