From 8810758c11df8afb5fb7ddf97a71c55a431edfd2 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 23 Jun 2011 02:06:49 -0400 Subject: Let the framework be able to override the hostname. The hostname is passed in during the server installation. We should use this hostname for the resulting server as well. It was being discarded and we always used the system hostname value. Important changes: - configure ipa_hostname in sssd on masters - set PKI_HOSTNAME so the hostname is passed to dogtag installer - set the hostname when doing ldapi binds This also reorders some things in the dogtag installer to eliminate an unnecessary restart. We were restarting the service twice in a row with very little time in between and this could result in a slew of reported errors, though the server installed ok. ticket 1052 --- install/tools/ipactl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install/tools/ipactl') diff --git a/install/tools/ipactl b/install/tools/ipactl index 4ce26069c..01b88a549 100755 --- a/install/tools/ipactl +++ b/install/tools/ipactl @@ -71,7 +71,7 @@ def emit_err(err): sys.stderr.write(err + '\n') def get_config(): - base = "cn=%s,cn=masters,cn=ipa,cn=etc,%s" % (socket.gethostname(), + base = "cn=%s,cn=masters,cn=ipa,cn=etc,%s" % (api.env.host, api.env.basedn) srcfilter = '(ipaConfigString=enabledService)' attrs = ['cn', 'ipaConfigString'] -- cgit