From c2bd6f365d2b65082f72bd9eb104e79e8c507fe3 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Thu, 31 Oct 2013 16:54:21 +0000 Subject: Convert remaining frontend code to LDAPEntry API. --- ipalib/plugins/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ipalib/plugins/config.py') diff --git a/ipalib/plugins/config.py b/ipalib/plugins/config.py index e38254cd..05369be4 100644 --- a/ipalib/plugins/config.py +++ b/ipalib/plugins/config.py @@ -232,7 +232,7 @@ class config_mod(LDAPUpdate): if kw: config = ldap.get_ipa_config(kw.values()) for (k, v) in kw.iteritems(): - allowed_attrs = ldap.get_allowed_attributes(config[1][v]) + allowed_attrs = ldap.get_allowed_attributes(config[v]) fields = entry_attrs[k].split(',') for a in fields: a = a.strip() @@ -285,7 +285,7 @@ class config_mod(LDAPUpdate): error=error_message) else: - config = ldap.get_ipa_config()[1] + config = ldap.get_ipa_config() defaultuser = config.get('ipaselinuxusermapdefault', [None])[0] if 'ipaselinuxusermaporder' in entry_attrs: @@ -307,7 +307,7 @@ class config_mod(LDAPUpdate): error=error_message) else: if not config: - config = ldap.get_ipa_config()[1] + config = ldap.get_ipa_config() order = config['ipaselinuxusermaporder'] userlist = order[0].split('$') if defaultuser and defaultuser not in userlist: -- cgit