summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-replica-manage
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2010-12-20 10:05:17 -0500
committerSimo Sorce <ssorce@redhat.com>2010-12-21 17:28:13 -0500
commit91f3e79d81671441bbf7c187d1415d864f80d101 (patch)
treef6a98d08b07cd7bccefbb2e4dfdc9a961d33a0c5 /install/tools/ipa-replica-manage
parentefd8b03ccfc5ba25c383eacafa948aa0aa5feddf (diff)
downloadfreeipa-91f3e79d81671441bbf7c187d1415d864f80d101.tar.gz
freeipa-91f3e79d81671441bbf7c187d1415d864f80d101.tar.xz
freeipa-91f3e79d81671441bbf7c187d1415d864f80d101.zip
Remove referrals when removing agreements
Part of this fix requires also giving proper permission to change the replication agreements root. While there also fix replica-related permissions to have the classic add/modify/remove triplet of permissions. Fixes: https://fedorahosted.org/freeipa/ticket/630
Diffstat (limited to 'install/tools/ipa-replica-manage')
-rwxr-xr-xinstall/tools/ipa-replica-manage2
1 files changed, 2 insertions, 0 deletions
diff --git a/install/tools/ipa-replica-manage b/install/tools/ipa-replica-manage
index 6f857e9d4..9894d2ad4 100755
--- a/install/tools/ipa-replica-manage
+++ b/install/tools/ipa-replica-manage
@@ -219,6 +219,7 @@ def del_link(replica1, replica2, dirman_passwd, force=False):
failed = False
try:
repl2.delete_agreement(replica1)
+ repl2.delete_referral(replica1)
except ldap.LDAPError, e:
desc = e.args[0]['desc'].strip()
info = e.args[0].get('info', '').strip()
@@ -238,6 +239,7 @@ def del_link(replica1, replica2, dirman_passwd, force=False):
print "Forcing removal on '%s'" % replica1
repl1.delete_agreement(replica2)
+ repl1.delete_referral(replica2)
def del_master(replman, hostname, force=False):
has_repl_agreement = True