elif 'ldap_bind_dn_template' in opts:
config['user dn template'] = opts['ldap_bind_dn_template']
config['tls'] = 'Demand'
- po.set_config(config)
- po.save_plugin_config(self.facility)
+ po.save_plugin_config(self.facility, config)
# Replace global config, only one plugin info can be used
po.name = 'global'
order = []
order.append('ldap')
globalconf['order'] = ','.join(order)
- po.set_config(globalconf)
- po.save_plugin_config(self.facility)
+ po.save_plugin_config(self.facility, globalconf)
order = []
order.append('nss')
globalconf['order'] = ','.join(order)
- po.set_config(globalconf)
- po.save_plugin_config(self.facility)
+ po.save_plugin_config(self.facility, globalconf)
order = []
order.append('fas')
globalconf['order'] = ','.join(order)
- po.set_config(globalconf)
- po.save_plugin_config(FACILITY)
+ po.save_plugin_config(FACILITY, globalconf)
order = []
order.append('form')
globalconf['order'] = ','.join(order)
- po.set_config(globalconf)
- po.save_plugin_config(FACILITY)
+ po.save_plugin_config(FACILITY, globalconf)
# for selinux enabled platforms, ignore if it fails just report
try:
order = []
order.insert(0, 'krb')
globalconf['order'] = ','.join(order)
- po.set_config(globalconf)
- po.save_plugin_config(FACILITY)
+ po.save_plugin_config(FACILITY, globalconf)
if 'ldap_bind_dn_template' in opts:
config['bind dn template'] = opts['ldap_bind_dn_template']
config['tls'] = 'Demand'
- po.set_config(config)
- po.save_plugin_config(FACILITY)
+ po.save_plugin_config(FACILITY, config)
# Update global config to add login plugin
po = PluginObject()
order = []
order.append('ldap')
globalconf['order'] = ','.join(order)
- po.set_config(globalconf)
- po.save_plugin_config(FACILITY)
+ po.save_plugin_config(FACILITY, globalconf)
po.wipe_config_values(FACILITY)
config = {'service name': opts['pam_service']}
- po.set_config(config)
- po.save_plugin_config(FACILITY)
+ po.save_plugin_config(FACILITY, config)
# Update global config to add login plugin
po = PluginObject()
order = []
order.append('pam')
globalconf['order'] = ','.join(order)
- po.set_config(globalconf)
- po.save_plugin_config(FACILITY)
+ po.save_plugin_config(FACILITY, globalconf)
# for selinux enabled platforms, ignore if it fails just report
try:
order = []
order.append('testauth')
globalconf['order'] = ','.join(order)
- po.set_config(globalconf)
- po.save_plugin_config(FACILITY)
+ po.save_plugin_config(FACILITY, globalconf)
config = {'endpoint url': url,
'identity_url_template': '%sid/%%(username)s' % url,
'enabled': '1'}
- po.set_config(config)
- po.save_plugin_config(FACILITY)
+ po.save_plugin_config(FACILITY, config)
'idp certificate file': cert.cert,
'idp key file': cert.key,
'enabled': '1'}
- po.set_config(config)
- po.save_plugin_config(FACILITY)
+ po.save_plugin_config(FACILITY, config)
# Fixup permissions so only the ipsilon user can read these files
files.fix_user_dirs(path, opts['system_user'])