Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD support for search_filter, precedence over search_attr #268

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ntavares
Copy link

The LDAP search_attr is very limiting, as it doesn't allow for more elaborate searches. One that is particularly useful is the support for the "disabled" status of an A/D entry. Adding this search_filter, which will have precedence over search_attr (for compatibility only, as it actually deprecates it), allows for searching users with a filter like, e.g.:

(&(objectClass=person)(&(!(userAccountControl:1.2.840.113556.1.4.803:=2))(sAMAccountName=%USERNAME%)))

Note: this is not the first attempt to get this into mainstream, see for instance:
https://www.freelists.org/post/racktables-users/how-can-I-use-filter-with-LDAP-auth,2

@infrastation
Copy link
Member

Thank you for proposing this change, all new features will have to wait at least until release 0.22.0 is out (let's hope it will happen this year).

@ntavares
Copy link
Author

ntavares commented May 4, 2022

Hi @infrastation! 0.22.0 is out, any chance to merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants