mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Finish the email autosuggest.
For now I've added a new API call. The field-specific searching is a ways off.
This commit is contained in:
@@ -377,7 +377,16 @@ class IPAServer:
|
||||
|
||||
filter = "(krbPrincipalName="+self.__safe_filter(principal)+")"
|
||||
return self.__get_sub_entry(self.basedn, filter, sattrs, opts)
|
||||
|
||||
|
||||
def get_user_by_email (self, email, sattrs=None, opts=None):
|
||||
"""Get a specific user's entry. Return as a dict of values.
|
||||
Multi-valued fields are represented as lists.
|
||||
"""
|
||||
|
||||
email = self.__safe_filter(email)
|
||||
filter = "(mail=" + email + ")"
|
||||
return self.__get_sub_entry(self.basedn, filter, sattrs, opts)
|
||||
|
||||
def get_users_by_manager (self, manager_dn, sattrs=None, opts=None):
|
||||
"""Gets the users that report to a particular manager.
|
||||
"""
|
||||
|
||||
@@ -323,6 +323,7 @@ def handler(req, profiling=False):
|
||||
h.register_function(f.update_entry)
|
||||
h.register_function(f.get_user_by_uid)
|
||||
h.register_function(f.get_user_by_principal)
|
||||
h.register_function(f.get_user_by_email)
|
||||
h.register_function(f.get_users_by_manager)
|
||||
h.register_function(f.add_user)
|
||||
h.register_function(f.get_add_schema)
|
||||
|
||||
Reference in New Issue
Block a user