cschiewek / devise_ldap_authenticatable

Devise Module for LDAP
MIT License
593 stars 359 forks source link

Add additional_ldap_filter suport. #209

Closed dimitertodorov closed 4 years ago

dimitertodorov commented 9 years ago

I found myself having to filter out certain users during the initial user lookup in LDAP. This is because for some attributes like "mail" we had duplicate user entries in our directory of over 30k Users.

This commit adds the capability to add a RFC2254 formatted String as an optional additional filter. This is joined using (&) to the default filter constructed.

medir commented 4 years ago

Just what I need, ty @dimitertodorov! +1 to integrate this PR.