Debugging LDAP behaviors (dev)
Chris F Ravenscroft edited this page 2021-07-19 15:07:26 -07:00

Understanding LDAP filters

Often, a query does not return the expected entries because they were filtered out. I have fixed several such scenario (missing query filters in response, "do not send values" support, etc) but many remain.

In order to debug this, we need to instrument the LDAP library code itself.

Relevant functions:

  • github.com/nmcclain/server_search.go HandleSearchRequest/6
  • github.com/nmcclain/filter.go ServerApplyFilter/2