dbeaver / cloudbeaver

Cloud Database Manager
https://dbeaver.com/
Apache License 2.0
3.36k stars 368 forks source link

Support for multiple LDAP hosts #2796

Open stephanonepoint opened 1 month ago

stephanonepoint commented 1 month ago

It would be convenient to have the possibility to pass to the ldap host a list of hosts or the various hosts to be given in a string with a comma separated hosts in the cloudbeaver.conf.

Currently the configuration file only allow one string host to be given as follow : authConfigurations: [ { "id": "ldap", "provider": "ldap", "displayName": "LDAP", "disabled": false, "iconURL": "", "description": "", "parameters": { "ldap-host": "{{ ldap_host }}", "ldap-port": "636", "ldap-dn": "{{ ldap_dn }}" } }

(For the Community Edition)

EvgeniaBzzz commented 1 month ago

Hi @stephanonepoint How many hosts do you actually need?

For now, as a workaround you can add several LDAP etries:

    "authConfigurations": [
      {
        "id": "ldap",
        "provider": "ldap",
        "displayName": "LDAP",
        "disabled": false,
        "iconURL": "",
        "description": "",
        "parameters": {
          "ldap-host": "host_name",
          "ldap-port": "389",
          "ldap-dn": "ou=ou_name,dc=dc_name,dc=dc2_name"
        }
      },
        {
        "id": "ldap2",
        "provider": "ldap",
        "displayName": "LDAP2",
        "disabled": false,
        "iconURL": "",
        "description": "",
        "parameters": {
          "ldap-host": "host_name",
          "ldap-port": "389",
          "ldap-dn": "ou=ou_name,dc=dc_name,dc=dc2_name"
        }
      }
    ]

Each tab will be associated with its own host. Снимок экрана 2024-07-22 181319