diff options
author | Simo Sorce <ssorce@redhat.com> | 2007-11-16 20:18:36 -0500 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2007-11-16 20:18:36 -0500 |
commit | b51f4b28ec86360d27cfb6f529a8e2def500e91f (patch) | |
tree | 0555256a84f728208508904fb1df18eff88752dc /ipa-client/ipa-install | |
parent | 0a5a952c1b25f0571390b2822632a783a79859e6 (diff) | |
download | freeipa-b51f4b28ec86360d27cfb6f529a8e2def500e91f.tar.gz freeipa-b51f4b28ec86360d27cfb6f529a8e2def500e91f.tar.xz freeipa-b51f4b28ec86360d27cfb6f529a8e2def500e91f.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
Diffstat (limited to 'ipa-client/ipa-install')
-rw-r--r-- | ipa-client/ipa-install/ipa-client-install | 15 |
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(" ") |