mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
s4:repl_meta_data LDB module - allow also special DNs to be renamed correctly
Do always escape RDN values - this fixes bug #7794 Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Thu Nov 18 10:43:40 UTC 2010 on sn-devel-104
This commit is contained in:
@ -92,6 +92,7 @@ class SamTests(unittest.TestCase):
|
||||
|
||||
self.delete_force(self.ldb, "cn=ldaptestuser,cn=users," + self.base_dn)
|
||||
self.delete_force(self.ldb, "cn=ldaptestuser2,cn=users," + self.base_dn)
|
||||
self.delete_force(self.ldb, "cn=ldaptest\,specialuser,cn=users," + self.base_dn)
|
||||
self.delete_force(self.ldb, "cn=ldaptestcomputer,cn=computers," + self.base_dn)
|
||||
self.delete_force(self.ldb, "cn=ldaptestgroup,cn=users," + self.base_dn)
|
||||
self.delete_force(self.ldb, "cn=ldaptestgroup2,cn=users," + self.base_dn)
|
||||
@ -595,6 +596,12 @@ class SamTests(unittest.TestCase):
|
||||
self.delete_force(self.ldb, "cn=ldaptestgroup,cn=users," + self.base_dn)
|
||||
self.delete_force(self.ldb, "cn=ldaptestgroup2,cn=users," + self.base_dn)
|
||||
|
||||
# Make also a small test for accounts with special DNs ("," in this case)
|
||||
ldb.add({
|
||||
"dn": "cn=ldaptest\,specialuser,cn=users," + self.base_dn,
|
||||
"objectclass": "user"})
|
||||
self.delete_force(self.ldb, "cn=ldaptest\,specialuser,cn=users," + self.base_dn)
|
||||
|
||||
def test_sam_attributes(self):
|
||||
"""Test the behaviour of special attributes of SAM objects"""
|
||||
print "Testing the behaviour of special attributes of SAM objects\n"""
|
||||
|
Reference in New Issue
Block a user