ClickHouse/ClickHouse

LDAP + SSH user account with group mapping from LDAP

Open

#88.864 geöffnet am 21. Okt. 2025

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (8.400 Forks)batch import
featurehelp wantednot planned

Repository-Metriken

Stars
 (47.419 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 2T 2h) (1.000 gemergte PRs in 30 T)

Beschreibung

Company or project name

No response

Use case

Clickhouse is used by clients with varying operating systems. These users often need access to the native client interface. Given that the clickhouse-client tool is currently only available for Linux nodes, SSH access is a good alternative given its cross platform availability.

In an enterprise environment, where access is configured using directory groups, its essential to allow grants using groups made available from such directories during login.

Currently, only LDAP login type allows such group mapping.

In order to allow users from different OS'es to login and use the benefits of directory group mapping, it would be helpful to have users created using multiple-auth methods to get group mappings.

Describe the solution you'd like

CREATE USER 'ldap_user_name' IDENTIFIED WITH ldap SERVER 'MY_AD_LDAP', ssh_key BY KEY 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' TYPE 'ssh-ed25519

If above user created using both LDAP and SSH can login and get LDAP group mappings, that would allow flexibility for users of all OSes.

Describe alternatives you've considered

Only alternative is to statically define grants for users.

Additional context

No response

Contributor Guide