]> git.ipfire.org Git - thirdparty/squid.git/commit
basic_ldap_auth: Return BH on internal errors; polished messages (#347)
authorAmish <3330468+amishmm@users.noreply.github.com>
Wed, 2 Jan 2019 11:51:45 +0000 (11:51 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 5 Jan 2019 21:28:04 +0000 (21:28 +0000)
commit53641f9dd55fb9b7ab4aadd158f7f11605fe90e5
tree6896c2c4add6283ce95eb32caa460fa4c2bd5711
parent6f405e998d29f4c13d012f02352a37d4633eda6a
basic_ldap_auth: Return BH on internal errors; polished messages (#347)

Basic LDAP auth helper now returns BH instead of ERR in case of errors
other than LDAP_SECURITY_ERROR, per helper guidelines.

Motivation: I have a wrapper around Basic LDAP auth helper. If an LDAP
server is down, then the helper returns BH, and the wrapper uses
a fallback authentication source.

Also converted printf() to SEND_*() macros and reduced message
verbosity.
src/auth/basic/LDAP/basic_ldap_auth.cc