pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0145-replication-ensure-bind-DN-group-check-interval-is-s.patch

34b659
From 405446b0f08551fa82fd0f6d71f219d68641732b Mon Sep 17 00:00:00 2001
34b659
From: Martin Babinsky <mbabinsk@redhat.com>
34b659
Date: Wed, 23 Nov 2016 16:58:39 +0100
34b659
Subject: [PATCH] replication: ensure bind DN group check interval is set on
34b659
 replica config
34b659
34b659
This is a safeguard ensuring valid replica configuration against incorrectly
34b659
upgraded masters lacking 'nsds5replicabinddngroupcheckinterval' attribute on
34b659
their domain/ca topology config.
34b659
34b659
https://fedorahosted.org/freeipa/ticket/6508
34b659
34b659
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
34b659
---
34b659
 ipaserver/install/replication.py | 6 ++++++
34b659
 1 file changed, 6 insertions(+)
34b659
34b659
diff --git a/ipaserver/install/replication.py b/ipaserver/install/replication.py
34b659
index b8b665267ea8debba9f0ce01f54a78cd67d88292..e9624894d7d1e745be8072268fa76d51a8c117e3 100644
34b659
--- a/ipaserver/install/replication.py
34b659
+++ b/ipaserver/install/replication.py
34b659
@@ -452,6 +452,12 @@ class ReplicationManager(object):
34b659
             if replica_groupdn not in binddn_groups:
34b659
                 mod.append((ldap.MOD_ADD, 'nsds5replicabinddngroup',
34b659
                             replica_groupdn))
34b659
+
34b659
+            if 'nsds5replicabinddngroupcheckinterval' not in entry:
34b659
+                mod.append(
34b659
+                    (ldap.MOD_ADD,
34b659
+                     'nsds5replicabinddngroupcheckinterval',
34b659
+                     '60'))
34b659
             if mod:
34b659
                 conn.modify_s(dn, mod)
34b659
 
34b659
-- 
34b659
2.7.4
34b659