Open thedjdoorn opened 4 years ago
I am debating if we should include this feature. The purpose of ldap-authentication is as the name indicates, authenticate a user. Adding getting all users may diverge from that goal.
This feature would be great, I also need it.
Just a note when implementing this: all LDAP servers have a limit how many entries will be returned when doing a simple search()
(usually 1000). So when implementing this, add paged: true
as option for ldapjs.
This would allow for more specific user management without needing an explicit username or password, something like:
A query for that would look like
"uid=*,ou=people,dc=example,dc=com"
, I think this could be a great improvement to make the library powerful while also keeping it simple.