diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-02-04 10:53:34 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-02-06 15:04:42 -0500 |
commit | 6b34f0772026ede7788f9d2ec7989912ba17216f (patch) | |
tree | 7e31c6b5244805c529f5475c33ee185c982f9396 /install/tools/ipa-server-install | |
parent | baef3003bc0d43368a0f58f9281fad32a237d5db (diff) | |
download | freeipa-6b34f0772026ede7788f9d2ec7989912ba17216f.tar.gz freeipa-6b34f0772026ede7788f9d2ec7989912ba17216f.tar.xz freeipa-6b34f0772026ede7788f9d2ec7989912ba17216f.zip |
Remove some duplicated code that was moved to ipaserver and use it Remove some unused files
Diffstat (limited to 'install/tools/ipa-server-install')
-rwxr-xr-x | install/tools/ipa-server-install | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install index 70e74ac5..2c5e987d 100755 --- a/install/tools/ipa-server-install +++ b/install/tools/ipa-server-install @@ -49,6 +49,7 @@ from ipaserver.install.installutils import * from ipa import sysrestore from ipa.ipautil import * +from ipalib import util pw_name = None @@ -531,6 +532,16 @@ def main(): fd.write("domain=" + domain_name + "\n") fd.close() + # Create the management framework config file + fstore.backup_file("/etc/ipa/default.conf") + fd = open("/etc/ipa/default.conf", "w") + fd.write("[global]\n") + fd.write("basedn=" + util.realm_to_suffix(realm_name) + "\n") + fd.write("realm=" + realm_name + "\n") + fd.write("domain=" + domain_name + "\n") + fd.write("xmlrpc_uri=https://%s/ipa/xml\n" % host_name) + fd.close() + bind = bindinstance.BindInstance(fstore) bind.setup(host_name, ip_address, realm_name, domain_name) if options.setup_bind: |