mirror of
https://github.com/samba-team/samba.git
synced 2025-06-24 15: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:
parent
dd64b253fc
commit
ae9faaa894
@ -445,9 +445,11 @@ class BasicTests(unittest.TestCase):
|
|||||||
|
|
||||||
self.delete_force(self.ldb, "description=xyz,cn=users," + self.base_dn)
|
self.delete_force(self.ldb, "description=xyz,cn=users," + self.base_dn)
|
||||||
|
|
||||||
|
# a wrong "name" attribute is obviously tolerated
|
||||||
self.ldb.add({
|
self.ldb.add({
|
||||||
"dn": "cn=ldaptestgroup,cn=users," + self.base_dn,
|
"dn": "cn=ldaptestgroup,cn=users," + self.base_dn,
|
||||||
"objectclass": "group"})
|
"objectclass": "group",
|
||||||
|
"name": "ldaptestgroupx"})
|
||||||
|
|
||||||
m = Message()
|
m = Message()
|
||||||
m.dn = Dn(ldb, "cn=ldaptestgroup,cn=users," + self.base_dn)
|
m.dn = Dn(ldb, "cn=ldaptestgroup,cn=users," + self.base_dn)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user