]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: checks: Implement LDAP check using tcp-check rules
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Apr 2020 21:13:50 +0000 (23:13 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 07:39:38 +0000 (09:39 +0200)
commit1997ecaa0c5eaed39b6ce4a50f8018f0ef2df134
tree0a8c008948b93351cc20ccdcb35dc98a5aa7e44d
parentf2b3be5c27dac436183980e60cc508e9241635ee
MEDIUM: checks: Implement LDAP check using tcp-check rules

A shared tcp-check ruleset is now created to support LDAP check. This way no
extra memory is used if several backends use a LDAP check.

The following sequance is used :

    tcp-check send-binary "300C020101600702010304008000"

    tcp-check expect rbinary "^30" min-recv 14 \
        on-error "Not LDAPv3 protocol"

    tcp-check expect custom

The last expect rule relies on a custom function to check the LDAP server reply.
include/common/defaults.h
include/proto/checks.h
include/types/checks.h
include/types/proxy.h
src/cfgparse-listen.c
src/checks.c