From 5e651a6496848f5ee3f6415ef3b56ca140c88556 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Thu, 18 Oct 2007 14:33:55 -0700 Subject: Finish the email autosuggest. For now I've added a new API call. The field-specific searching is a ways off. --- ipa-python/ipaclient.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ipa-python/ipaclient.py') diff --git a/ipa-python/ipaclient.py b/ipa-python/ipaclient.py index 63cd425f..7131be48 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 -- cgit