[mod_auth] permit specifying ldap DN; skip search (fixes #1248)
commit8b282db1d15e11655b1d7f69dc7cb9ceeba3bcbf
authorGlenn Strauss <gstrauss@gluelogic.com>
Thu, 29 Sep 2016 04:25:50 +0000 (29 00:25 -0400)
committerGlenn Strauss <gstrauss@gluelogic.com>
Tue, 4 Oct 2016 09:03:15 +0000 (4 05:03 -0400)
treeeba8e904b89f4ca0186c7c030a7fdcfe9aa2d3dd
parent59c753bf9fdd1241bcaa63ce05bb10a83e6a796e
[mod_auth] permit specifying ldap DN; skip search (fixes #1248)

If auth.backend.ldap.filter begins with ',', then concatenate
uid=<username> with the 'filter' value to form the DN instead of using
ldap_search to query LDAP for the DN for the username, applying the
provided filter.

x-ref:
  "Allow User-DN to be supplied in the configuration rather than searching"
  https://redmine.lighttpd.net/issues/1248
src/mod_authn_ldap.c