1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-04 08:54:39 +00:00

Add rpc for searching groups by name

This commit is contained in:
cuihaikuo
2017-01-17 13:47:54 +08:00
parent 6a697e6954
commit 4407927e37

View File

@@ -715,6 +715,12 @@ class CcnetAPI(object):
"""
return ccnet_threaded_rpc.search_emailusers(source, email_patt, start, limit)
def search_groups(self, group_patt, start, limit):
"""
Search for groups whose name contains @group_patt.
"""
return ccnet_threaded_rpc.search_groups(group_patt, start, limit)
def search_ldapusers(self, keyword, start, limit):
"""
Search for users whose name contains @keyword directly from LDAP server.