ipa-csreplica-manage: remove extraneous ldap2 connection

https://fedorahosted.org/freeipa/ticket/5583

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Martin Babinsky 2016-01-07 18:09:41 +01:00 committed by Martin Basti
parent 50627004b8
commit a81e69a796

View File

@ -285,8 +285,6 @@ def del_master(realm, hostname, options):
try:
if bindinstance.dns_container_exists(options.host, api.env.basedn,
dm_password=options.dirman_passwd):
api.Backend.ldap2.connect(bind_dn=DN(('cn', 'Directory Manager')),
bind_pw=options.dirman_passwd)
bind = bindinstance.BindInstance()
bind.remove_ipa_ca_dns_records(hostname, realm.lower())
except Exception as e: