diff --git a/dirsrvtests/tests/suites/replication/regression_m2_test.py b/dirsrvtests/tests/suites/replication/regression_m2_test.py index 6cfed1d1d..ed138013d 100644 --- a/dirsrvtests/tests/suites/replication/regression_m2_test.py +++ b/dirsrvtests/tests/suites/replication/regression_m2_test.py @@ -68,7 +68,7 @@ def __init__(self, from_inst, to_inst, cn = None): self.binddn = f'cn={cn},cn=config' else: self.usedn = False - self.cn = f'{DEFAULT_SUFFIX}:{self.from_inst.host}:{self.from_inst.sslport}' + self.cn = ldap.dn.escape_dn_chars(f'{DEFAULT_SUFFIX}:{self.from_inst.host}:{self.from_inst.sslport}') self.binddn = f'cn={self.cn}, ou=Services, {DEFAULT_SUFFIX}' self.original_state = [] self._pass = False