On 06/04/2015 04:32 PM, Petr Vobornik wrote:
https://fedorahosted.org/freeipa/ticket/4302



missed one occurrence. Updated patch attached.
--
Petr Vobornik
From 305c493905fa6b74a5c233674f4f182695a20226 Mon Sep 17 00:00:00 2001
From: Petr Vobornik <pvobo...@redhat.com>
Date: Thu, 4 Jun 2015 14:18:37 +0200
Subject: [PATCH] move replications managers group to
 cn=sysaccounts,cn=etc,$SUFFIX

https://fedorahosted.org/freeipa/ticket/4302
---
 daemons/ipa-slapi-plugins/topology/ipa-topology-conf.ldif | 2 +-
 install/updates/20-replication.update                     | 2 +-
 ipaserver/install/replication.py                          | 7 +++++--
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/daemons/ipa-slapi-plugins/topology/ipa-topology-conf.ldif b/daemons/ipa-slapi-plugins/topology/ipa-topology-conf.ldif
index 9b7e5ebf8f160761b6ba93240c02063a5dc67fd6..a7acb350772a00a8a49365f92e9d219271e65935 100755
--- a/daemons/ipa-slapi-plugins/topology/ipa-topology-conf.ldif
+++ b/daemons/ipa-slapi-plugins/topology/ipa-topology-conf.ldif
@@ -10,7 +10,7 @@ nsslapd-pluginType: object
 nsslapd-pluginEnabled: on
 nsslapd-topo-plugin-shared-config-base: cn=ipa,cn=etc,$SUFFIX
 nsslapd-topo-plugin-shared-replica-root: $SUFFIX
-nsslapd-topo-plugin-shared-binddngroup: cn=replication managers,cn=etc,$SUFFIX
+nsslapd-topo-plugin-shared-binddngroup: cn=replication managers,cn=sysaccounts,cn=etc,$SUFFIX
 nsslapd-topo-plugin-startup-delay: 20
 nsslapd-pluginId: none
 nsslapd-plugin-depends-on-named: ldbm database
diff --git a/install/updates/20-replication.update b/install/updates/20-replication.update
index 01fc85033c2c2a4d1eb7868cb58a1266423efbc1..110c3cc7c65c3171c1403eef246dfc29ca5b2bbe 100644
--- a/install/updates/20-replication.update
+++ b/install/updates/20-replication.update
@@ -9,5 +9,5 @@ default: nsDS5ReplicaId: 3
 default: nsDS5ReplicaRoot: $SUFFIX
 
 # Group containing replication bind dns
-dn: cn=replication managers,cn=etc,$SUFFIX
+dn: cn=replication managers,cn=sysaccounts,cn=etc,$SUFFIX
 default: objectclass: groupofnames
diff --git a/ipaserver/install/replication.py b/ipaserver/install/replication.py
index 21feeb048982dc1a11805c2aa18dd779dec31591..b367d7db81529d70864a3a8dab23c89c797daa47 100644
--- a/ipaserver/install/replication.py
+++ b/ipaserver/install/replication.py
@@ -416,7 +416,9 @@ class ReplicationManager(object):
         assert isinstance(replica_binddn, DN)
         dn = self.replica_dn()
         assert isinstance(dn, DN)
-        replica_groupdn = DN(('cn', 'replication managers'), ('cn', 'etc'), self.suffix)
+        replica_groupdn = DN(
+            ('cn', 'replication managers'), ('cn', 'sysaccounts'),
+            ('cn', 'etc'), self.suffix)
 
         try:
             entry = conn.get_entry(dn)
@@ -759,7 +761,8 @@ class ReplicationManager(object):
         """
 
         rep_dn = self.replica_dn()
-        group_dn = DN(('cn', 'replication managers'), ('cn', 'etc'), self.suffix)
+        group_dn = DN(('cn', 'replication managers'), ('cn', 'sysaccounts'),
+                      ('cn', 'etc'), self.suffix)
         assert isinstance(rep_dn, DN)
         (a_dn, b_dn) = self.get_replica_principal_dns(a, b, retries=100)
         assert isinstance(a_dn, DN)
-- 
2.1.0

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to