mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-27 09:21:59 -06:00
- 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
This commit is contained in:
parent
598b05569b
commit
de5a54ef75
@ -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(" ")
|
||||
|
Loading…
Reference in New Issue
Block a user