diff options
Diffstat (limited to 'install')
-rwxr-xr-x | install/tools/ipa-replica-install | 1 | ||||
-rwxr-xr-x | install/tools/ipa-server-install | 3 | ||||
-rwxr-xr-x | install/tools/ipactl | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/install/tools/ipa-replica-install b/install/tools/ipa-replica-install index 16f849567..3feb2a93d 100755 --- a/install/tools/ipa-replica-install +++ b/install/tools/ipa-replica-install @@ -447,6 +447,7 @@ def main(): try: fd = open("/etc/ipa/default.conf", "w") fd.write("[global]\n") + fd.write("host=" + config.host_name + "\n") fd.write("basedn=" + util.realm_to_suffix(config.realm_name) + "\n") fd.write("realm=" + config.realm_name + "\n") fd.write("domain=" + config.domain_name + "\n") diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install index 019dfb1aa..09cc8a099 100755 --- a/install/tools/ipa-server-install +++ b/install/tools/ipa-server-install @@ -680,6 +680,7 @@ def main(): try: fd = open("/etc/ipa/default.conf", "w") fd.write("[global]\n") + fd.write("host=" + host_name + "\n") fd.write("basedn=" + util.realm_to_suffix(realm_name) + "\n") fd.write("realm=" + realm_name + "\n") fd.write("domain=" + domain_name + "\n") @@ -920,7 +921,7 @@ def main(): # Call client install script try: - run(["/usr/sbin/ipa-client-install", "--on-master", "--unattended", "--domain", domain_name, "--server", host_name, "--realm", realm_name]) + run(["/usr/sbin/ipa-client-install", "--on-master", "--unattended", "--domain", domain_name, "--server", host_name, "--realm", realm_name, "--hostname", host_name]) except Exception, e: sys.exit("Configuration of client side components failed!\nipa-client-install returned: " + str(e)) 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'] |