summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2007-11-16 20:18:36 -0500
committerSimo Sorce <ssorce@redhat.com>2007-11-16 20:18:36 -0500
commitde5a54ef75473764b91e9e69cbe82c35fac89028 (patch)
tree1c98631dc2a7728d7e8c6d0f261496b0f82b79c6
parent598b05569b4317bf12b12fb888c3bb0c6ee89277 (diff)
downloadfreeipa-de5a54ef75473764b91e9e69cbe82c35fac89028.tar.gz
freeipa-de5a54ef75473764b91e9e69cbe82c35fac89028.tar.xz
freeipa-de5a54ef75473764b91e9e69cbe82c35fac89028.zip
- Set correct values in ipa.conf during client install so that admin tools can
reach the xml-rpc server. - Assume the kdc/ldap server == xml-rpc server for v1. Initial code to read the Kerberos Master Key from the Directory
-rw-r--r--ipa-client/ipa-install/ipa-client-install15
1 files changed, 15 insertions, 0 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index 3e3597dca..fccdac3bd 100644
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -124,6 +124,21 @@ def main():
print "IPA Server: "+ds.getServerName()
print "BaseDN: "+ds.getBaseDN()
+ # Configure ipa.conf
+ ipaconf = ipaclient.ipachangeconf.IPAChangeConf("IPA Installer")
+ ipaconf.setOptionAssignment(" = ")
+ ipaconf.setSectionNameDelimiters(("[","]"))
+
+ opts = [{'name':'comment', 'type':'comment', 'value':'File modified by ipa-client-install'},
+ {'name':'empty', 'type':'empty'}]
+ defopts.append({'name':'server', 'type':'option', 'value':ds.getServerName()})
+ defopts.append({'name':'realm', 'type':'option', 'value':ds.getRealmName()})
+
+ opts.append({'name':'defaults', 'type':'section', 'value':defopts})
+ opts.append({'name':'empty', 'type':'empty'})
+
+ ipaconf.newConf("/etc/ipa/ipa.conf", opts)
+
# Configure ldap.conf
ldapconf = ipaclient.ipachangeconf.IPAChangeConf("IPA Installer")
ldapconf.setOptionAssignment(" ")