summaryrefslogtreecommitdiffstats
path: root/install/tools
diff options
context:
space:
mode:
authorTomas Krizek <tkrizek@redhat.com>2016-11-11 12:45:11 +0100
committerMartin Babinsky <mbabinsk@redhat.com>2016-11-11 14:55:24 +0100
commitf183f70e0183e51d569ada972bd3ec73cad76a30 (patch)
treeb80d98e09a023f1f3c4339e13e8e90a57fa439e9 /install/tools
parent28bc54f91dfbd76887180fa67ceecb46977a4fb8 (diff)
downloadfreeipa-f183f70e0183e51d569ada972bd3ec73cad76a30.tar.gz
freeipa-f183f70e0183e51d569ada972bd3ec73cad76a30.tar.xz
freeipa-f183f70e0183e51d569ada972bd3ec73cad76a30.zip
dns: check if container exists using ldapi
Previously an adhoc connection was established for checking if dns(sec) container exists. A simple or external bind was used. Instead, always connect with ldapi through api.Backend.ldap2. https://fedorahosted.org/freeipa/ticket/6461 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'install/tools')
-rwxr-xr-xinstall/tools/ipa-csreplica-manage3
-rwxr-xr-xinstall/tools/ipa-replica-manage3
2 files changed, 2 insertions, 4 deletions
diff --git a/install/tools/ipa-csreplica-manage b/install/tools/ipa-csreplica-manage
index fd384d678..532e35344 100755
--- a/install/tools/ipa-csreplica-manage
+++ b/install/tools/ipa-csreplica-manage
@@ -281,8 +281,7 @@ def del_master(realm, hostname, options):
# 7. And clean up the removed replica DNS entries if any.
try:
- if bindinstance.dns_container_exists(options.host, api.env.basedn,
- dm_password=options.dirman_passwd):
+ if bindinstance.dns_container_exists(api.env.basedn):
bind = bindinstance.BindInstance()
bind.update_system_records()
except Exception as e:
diff --git a/install/tools/ipa-replica-manage b/install/tools/ipa-replica-manage
index 48a28bd1d..68d9a92dd 100755
--- a/install/tools/ipa-replica-manage
+++ b/install/tools/ipa-replica-manage
@@ -903,8 +903,7 @@ def ensure_last_services(conn, hostname, masters, options):
def cleanup_server_dns_entries(realm, hostname, suffix, options):
try:
- if bindinstance.dns_container_exists(options.host, suffix,
- dm_password=options.dirman_passwd):
+ if bindinstance.dns_container_exists(suffix):
bindinstance.remove_master_dns_records(hostname, realm)
dnskeysyncinstance.remove_replica_public_keys(hostname)
except Exception as e: