diff options
author | Simo Sorce <ssorce@redhat.com> | 2007-11-18 14:27:25 -0500 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2007-11-18 14:27:25 -0500 |
commit | d5c269c8ebf21281348f69840bf60259bbd37cbf (patch) | |
tree | d06d52e06e82d9f57874576705960fa32f728085 /ipa-python/ipaclient.py | |
parent | b51f4b28ec86360d27cfb6f529a8e2def500e91f (diff) | |
parent | de5a54ef75473764b91e9e69cbe82c35fac89028 (diff) | |
download | freeipa.git-d5c269c8ebf21281348f69840bf60259bbd37cbf.tar.gz freeipa.git-d5c269c8ebf21281348f69840bf60259bbd37cbf.tar.xz freeipa.git-d5c269c8ebf21281348f69840bf60259bbd37cbf.zip |
Merge upstream and fix bad suffix in default-aci
Diffstat (limited to 'ipa-python/ipaclient.py')
-rw-r--r-- | ipa-python/ipaclient.py | 38 |
1 files changed, 34 insertions, 4 deletions
diff --git a/ipa-python/ipaclient.py b/ipa-python/ipaclient.py index 659ff995..f8c70974 100644 --- a/ipa-python/ipaclient.py +++ b/ipa-python/ipaclient.py @@ -134,10 +134,14 @@ class IPAClient: return all_users - def get_add_schema(self): - """Prototype for the GUI. Specify in the directory fields to - be displayed and what data to get for new users.""" - result = self.transport.get_add_schema() + def get_custom_fields(self): + """Get custom user fields""" + result = self.transport.get_custom_fields() + return result + + def set_custom_fields(self, schema): + """Set custom user fields""" + result = self.transport.set_custom_fields(schema) return result def find_users(self, criteria, sattrs=None, searchlimit=0, timelimit=-1): @@ -331,3 +335,29 @@ class IPAClient: entries.append(user.User(e)) return entries + + def get_ipa_config(self): + """Get the IPA configuration""" + result = self.transport.get_ipa_config() + return entity.Entity(result) + + def update_ipa_config(self, config): + """Updates the IPA configuration. + + config is an Entity object. + """ + result = self.transport.update_ipa_config(config.origDataDict(), config.toDict()) + return result + + def get_password_policy(self): + """Get the IPA password policy""" + result = self.transport.get_password_policy() + return entity.Entity(result) + + def update_password_policy(self, policy): + """Updates the IPA password policy. + + policy is an Entity object. + """ + result = self.transport.update_password_policy(policy.origDataDict(), policy.toDict()) + return result |