diff options
author | Kevin McCarthy <kmccarth@redhat.com> | 2007-10-18 14:33:55 -0700 |
---|---|---|
committer | Kevin McCarthy <kmccarth@redhat.com> | 2007-10-18 14:33:55 -0700 |
commit | 5e651a6496848f5ee3f6415ef3b56ca140c88556 (patch) | |
tree | 3a8f78b27aa28d2125275d42fa07110fa34ad42a /ipa-python/ipaclient.py | |
parent | f018c2123c2b0018af5d41ec007ac8ddf0f04d31 (diff) | |
download | freeipa-5e651a6496848f5ee3f6415ef3b56ca140c88556.tar.gz freeipa-5e651a6496848f5ee3f6415ef3b56ca140c88556.tar.xz freeipa-5e651a6496848f5ee3f6415ef3b56ca140c88556.zip |
Finish the email autosuggest.
For now I've added a new API call. The field-specific searching is
a ways off.
Diffstat (limited to 'ipa-python/ipaclient.py')
-rw-r--r-- | ipa-python/ipaclient.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ipa-python/ipaclient.py b/ipa-python/ipaclient.py index 63cd425f2..7131be48c 100644 --- a/ipa-python/ipaclient.py +++ b/ipa-python/ipaclient.py @@ -98,6 +98,13 @@ class IPAClient: result = self.transport.get_user_by_principal(principal,sattrs) return user.User(result) + def get_user_by_email(self,email,sattrs=None): + """Get a specific user's entry. Return as a dict of values. + Multi-valued fields are represented as lists. + """ + result = self.transport.get_user_by_email(email,sattrs) + return user.User(result) + def get_users_by_manager(self,manager_dn,sattrs=None): """Gets the users the report to a particular manager. If sattrs is not None then only those |