DEX LDAP configuration

Is it possible to have multiple LDAP hosts configured in the DEX/LDAP configuration section. I am trying to accomplish the config below, but the docs do not show such an example:

dex:
connectors:
- type: ldap
id: ldap
name: LDAP
config:
host: openldap1.my_center.edu:636, openldap2.mycenter.edu:636

Thank you,

SS

I do not think multiple hosts are supported. Typically when multiple hosts are supported by the LDAP library they are separated by a space if I recall correctly. You could try defining multiple LDAP connectors or removing the comma and see if that works.

This is the upstream docs: https://github.com/dexidp/dex/blob/master/Documentation/connectors/ldap.md

I do not know the behavior of multiple connectors, if it would end up giving users a choice between one or the other of if there is a transparent effort on Dex’s part to search one then another.

So something like this:

dex:
  connectors:
  - type: ldap
    id: ldap1
    name: LDAP
    config:
      host: openldap1.my_center.edu:636
  - type: ldap
    id: ldap2
    name: LDAP
    config:
      host: openldap2.mycenter.edu:636

Thank you for the suggestion. Works, but you are presented with a choice before being able to login as to which of the LDAP servers to use.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.