flask-simpleldap
flask-simpleldap copied to clipboard
Adds get_users method to provide an interface for
listing all available users in the ldap directory based on the filter defined in LDAP_USERS_OBJECT_FILTER
The get_users method has two arguments fields and dn_only to customize the result. i.e. get_users(fields=['uid']) provide a list of dict with uid included. if only get_users(dn_only=True) is provided, a list of available users dn is returned. If no users in directory, an empty list is returned.
hey @alexferl any chance merging this one?
This would be very beneficial.