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 authored and Simo Sorce committed 2010-12-11 10:42:09 -05:00
1 parent 490ae68e29
commit 33860ebb43
1 file changed
+1 -1
+1 -1
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: