From fc2008c497542970168d988a3b1cfadd59b5bcb4 Mon Sep 17 00:00:00 2001 From: Viktor Ashirov Date: Sep 17 2018 12:01:35 +0000 Subject: Ticket 49926 - Fix replication tests on 1.3.x Description: nsAccount is not supported by 1.3.x branch. Fix description: Remove nsAccount objectClass from Replication Manager if DS is older than 1.4.x. https://pagure.io/389-ds-base/issue/49926 Reviewed by: mreynolds, firstyear (Thanks!) --- diff --git a/src/lib389/lib389/replica.py b/src/lib389/lib389/replica.py index 348a7b4..4542a42 100644 --- a/src/lib389/lib389/replica.py +++ b/src/lib389/lib389/replica.py @@ -1292,6 +1292,8 @@ class BootstrapReplicationManager(DSLdapObject): 'netscapeServer', 'nsAccount' ] + if ds_is_older('1.4.0'): + self._create_objectclasses.remove('nsAccount') self._protected = False self.common_name = 'replication manager'