Skip to content
Snippets Groups Projects
Commit 7c8ddf17 authored by Jose Manuel Lopez Lujan's avatar Jose Manuel Lopez Lujan
Browse files

Adds get_groups method to provide an interface for

listing all available groups in the ldap directory
based on the filter defined in LDAP_GROUPS_OBJECT_FILTER

The get_groups method has two arguments fields and dn_only
to customize the result. i.e.
get_groups(fields=['cn', 'description'])
provide a list of dict with included attributes. if only
get_groups(dn_only=True) is provided, a list of available
groups dn is returned. If no users in directory, an empty
list is returned.
parent 7dcddf2b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment