HAProxy community

Redirection according to LDAP URI

Hi ,

i would like to redirect incoming flow according to LDAP URI (like in http mode).
I mean if the destination is ldap://ldap1.test.com ,it will redirect to server ldap1 (and if the request is ldap://ldap2.test.com it will redirect to server ldap2)
Is it possible to do this with haproxy or should I have different IP (one IP <-> one LDAP)
Thanks a lot.


This is only doable if this URL is present in the very first payload sent by the client, in the bindRequest for example or at TLS/SSL layer if client send TLS SNI.