From de5a54ef75473764b91e9e69cbe82c35fac89028 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 16 Nov 2007 20:18:36 -0500 Subject: [PATCH] - 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 --- ipa-client/ipa-install/ipa-client-install | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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(" ")