1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-23 11:17:06 +03:00

s4:ldap.py - enhance the RDN name test to show that invalid "name" attributes are allowed on add operations

This commit is contained in:
Matthias Dieter Wallnöfer 2010-06-03 18:05:52 +02:00
parent dd64b253fc
commit ae9faaa894

View File

@ -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)