From 04845bad8448567f68f2fc4b38ac1b9487732006 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Aug 23 2018 11:40:36 +0000 Subject: Honor no-host-dns when creating client host in replica install --no-host-dns is supposed to avoid all DNS lookups so pass this as the force value when creating the host in a replica installation. https://pagure.io/freeipa/issue/7656 Signed-off-by: Rob Crittenden Reviewed-By: Tibor Dudlak --- diff --git a/ipaserver/install/server/replicainstall.py b/ipaserver/install/server/replicainstall.py index a7ad1de..7efbfe2 100644 --- a/ipaserver/install/server/replicainstall.py +++ b/ipaserver/install/server/replicainstall.py @@ -638,7 +638,8 @@ def enroll_dl0_replica(installer, fstore, remote_api, debug=False): try: installer._enrollment_performed = True host_result = remote_api.Command.host_add( - unicode(config.host_name))['result'] + unicode(config.host_name), force=installer.no_host_dns + )['result'] host_princ = unicode(host_result['krbcanonicalname'][0]) purge_host_keytab(config.realm_name)