summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-12-11 00:42:52 -0500
committerSimo Sorce <ssorce@redhat.com>2010-12-11 10:42:09 -0500
commit33860ebb43bb23e8abc9d5b5d36ec341ddf4a413 (patch)
tree04a8618af7dfb22d907a232cad64887d82f2a529
parent490ae68e297b7da1d8d1b653f1faee31a3688caf (diff)
downloadfreeipa-33860ebb43bb23e8abc9d5b5d36ec341ddf4a413.tar.gz
freeipa-33860ebb43bb23e8abc9d5b5d36ec341ddf4a413.tar.xz
freeipa-33860ebb43bb23e8abc9d5b5d36ec341ddf4a413.zip
Pass the DM password when trying to delete a replica.
If the ticket is expired or otherwise unusable it should fall back to the DM password. It was prompted for correctly but wasn't being passed on. ticket 549
-rwxr-xr-xinstall/tools/ipa-replica-manage2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/tools/ipa-replica-manage b/install/tools/ipa-replica-manage
index 93f9fa39a..720fe6777 100755
--- a/install/tools/ipa-replica-manage
+++ b/install/tools/ipa-replica-manage
@@ -129,7 +129,7 @@ def del_master(replman, hostname, force=False):
if t == replication.IPA_REPLICA:
failed = False
try:
- other_replman = replication.ReplicationManager(hostname, dirman_passwd=None)
+ other_replman = replication.ReplicationManager(hostname, replman.dirman_passwd)
other_replman.suffix = get_suffix()
other_replman.delete_agreement(replman.conn.host)
except ldap.LDAPError, e: