LDAP connection fails with multiple servers using STARTTLS #3639
Labels
area/authentication
Affects user authentication or authorization
area/configuration
Affects the configuration
bug
Something isn't working
Milestone
I am configuring LDAP authentication with multiple servers (4 DCs in a ActiveDirectory domain). I can specify multiple servers separated with a space when using either LDAPS or unencrypted LDAP, but validation fails when selecting STARTTLS.
Validation with STARTTLS works with any individual DC, but not with any number greater than one.
I guess the problem is with how hostnames are passed down to the underlying OpenLDAP library. The problem goes away if I manually prepend "ldap://" to the hostname of each server.
For example, the following
ldapsearch
command succeeds using STARTTLS:But the following (without ldap:// URI) does not:
This seems somewhat similiar, but not quite identical, to issues #2906, #2818
Exhibit A: Working config with LDAPS
Exhibit B: Exact same config with STARTTLS
Expected Behavior
Identical behaviour with either STARTTLS or LDAPS.
Current Behavior
The exact same configuration that works with LDAP or LDAPS does not work with STARTTLS.
Possible Solution
Manually prepending each server hostname with
ldap://
works around the issue, but this should really be done automatically by Icingaweb2 (as is already the case with LDAPS).Steps to Reproduce (for bugs)
Context
Your Environment
icinga2 --version
): 2.10.2icinga2 feature list
):icinga2 daemon -C
):zones.conf
file (oricinga2 object list --type Endpoint
andicinga2 object list --type Zone
) from all affected nodes.The text was updated successfully, but these errors were encountered: