mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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>
This commit is contained in:
committed by
Martin Babinsky
parent
28bc54f91d
commit
f183f70e01
@@ -223,7 +223,6 @@ def install_step_1(standalone, replica_config, options):
|
||||
return
|
||||
|
||||
realm_name = options.realm_name
|
||||
dm_password = options.dm_password
|
||||
host_name = options.host_name
|
||||
subject_base = options.subject
|
||||
|
||||
@@ -285,7 +284,7 @@ def install_step_1(standalone, replica_config, options):
|
||||
|
||||
if standalone:
|
||||
# Install CA DNS records
|
||||
if bindinstance.dns_container_exists(host_name, basedn, dm_password):
|
||||
if bindinstance.dns_container_exists(basedn):
|
||||
bind = bindinstance.BindInstance()
|
||||
bind.update_system_records()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user