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
This commit is contained in:
Rob Crittenden
2010-12-11 00:42:52 -05:00
committed by Simo Sorce
parent 490ae68e29
commit 33860ebb43

View File

@@ -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: