From ab16d11e322d3183d7f43fd0cef6f36440ce8639 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 1 Feb 2016 23:02:14 +0100 Subject: [PATCH] s4:dsdb/tests: don't use spaces in lDAPDisplayName in urgent_replication.py This should result in LDAP_UNWILLING_TO_PERFORM/WERR_DS_INVALID_LDAP_DISPLAY_NAME, so better use a useful value without spaces. Signed-off-by: Stefan Metzmacher Reviewed-by: Garming Sam Reviewed-by: Andrew Bartlett --- source4/dsdb/tests/python/urgent_replication.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source4/dsdb/tests/python/urgent_replication.py b/source4/dsdb/tests/python/urgent_replication.py index 19176c18c80..93f3553ebd5 100755 --- a/source4/dsdb/tests/python/urgent_replication.py +++ b/source4/dsdb/tests/python/urgent_replication.py @@ -161,7 +161,7 @@ adminDescription: test attributeSchema oMSyntax: 64 systemOnly: FALSE searchFlags: 8 -lDAPDisplayName: test attributeSchema +lDAPDisplayName: testAttributeSchema name: test attributeSchema""") # urgent replication should be enabled when creating @@ -174,7 +174,7 @@ name: test attributeSchema""") # urgent replication should be enabled when modifying m = Message() m.dn = Dn(self.ldb, "CN=test attributeSchema,CN=Schema,CN=Configuration," + self.base_dn) - m["lDAPDisplayName"] = MessageElement("updated test attributeSchema", FLAG_MOD_REPLACE, + m["lDAPDisplayName"] = MessageElement("updatedTestAttributeSchema", FLAG_MOD_REPLACE, "lDAPDisplayName") self.ldb.modify(m) res = self.ldb.load_partition_usn("cn=Schema,cn=Configuration," + self.base_dn) @@ -195,7 +195,7 @@ showInAdvancedViewOnly: TRUE adminDisplayName: test classSchema adminDescription: test classSchema objectClassCategory: 1 -lDAPDisplayName: test classSchema +lDAPDisplayName: testClassSchema name: test classSchema systemOnly: FALSE systemPossSuperiors: dfsConfiguration @@ -215,7 +215,7 @@ defaultHidingValue: TRUE""") # urgent replication should be enabled when modifying m = Message() m.dn = Dn(self.ldb, "CN=test classSchema,CN=Schema,CN=Configuration," + self.base_dn) - m["lDAPDisplayName"] = MessageElement("updated test classSchema", FLAG_MOD_REPLACE, + m["lDAPDisplayName"] = MessageElement("updatedTestClassSchema", FLAG_MOD_REPLACE, "lDAPDisplayName") self.ldb.modify(m) res = self.ldb.load_partition_usn("cn=Schema,cn=Configuration," + self.base_dn) -- 2.47.3