racktables icon indicating copy to clipboard operation
racktables copied to clipboard

ADD support for search_filter, precedence over search_attr

Open ntavares opened this issue 4 years ago • 2 comments

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

ntavares avatar Sep 20 '20 22:09 ntavares

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).

infrastation avatar Sep 30 '20 17:09 infrastation

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

ntavares avatar May 04 '22 22:05 ntavares