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 | de5a54ef75473764b91e9e69cbe82c35fac89028 (patch) | |
tree | 1c98631dc2a7728d7e8c6d0f261496b0f82b79c6 | |
parent | 598b05569b4317bf12b12fb888c3bb0c6ee89277 (diff) | |
download | freeipa-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-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(" ") |