mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
parent
50627004b8
commit
a81e69a796
@ -285,8 +285,6 @@ def del_master(realm, hostname, options):
|
|||||||
try:
|
try:
|
||||||
if bindinstance.dns_container_exists(options.host, api.env.basedn,
|
if bindinstance.dns_container_exists(options.host, api.env.basedn,
|
||||||
dm_password=options.dirman_passwd):
|
dm_password=options.dirman_passwd):
|
||||||
api.Backend.ldap2.connect(bind_dn=DN(('cn', 'Directory Manager')),
|
|
||||||
bind_pw=options.dirman_passwd)
|
|
||||||
bind = bindinstance.BindInstance()
|
bind = bindinstance.BindInstance()
|
||||||
bind.remove_ipa_ca_dns_records(hostname, realm.lower())
|
bind.remove_ipa_ca_dns_records(hostname, realm.lower())
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user