ClickHouse/ClickHouse

Option to associate an LDAP server with the Kerberos realm

开放

#89,773 创建于 2025年11月9日

 (0 条评论) (0 个反应) (0 位负责人)C++ (8,400 个派生)batch import
featurehelp wanted

仓库指标

星标
 (47,419 个星标)
PR 合并指标
 (平均合并 2天 2小时) (30 天内合并 1,000 个 PR)

描述

Company or project name

No response

Use case

Passwordless SSO

Describe the solution you'd like

  1. Add an optional association between the Kerberos realm and an LDAP server name in config.xml.
  2. When an HTTP request is successfully Kerberos‑authenticated (GSS-SPNEGO) and the mapped user does not exist in any local access storage:
    • If the Kerberos config includes <ldap_server>..., attempt to provision the user using that LDAP server’s configuration (copying what LDAPAccessStorage would do on first successful LDAP auth).
    • Skip the password/bind verification step (since identity was already proven by Kerberos).
    • Retrieve external roles via GSSAPI.
  3. Create the user with AuthenticationType::KERBEROS
    • Optionally also AuthenticationType::LDAP (if not disabled via config)
    • If role search requires user bind (i.e. configuration relies on user’s own password) and no password is available, proceed without external roles or (optionally) fall back to GSSAPI or throw.

Describe alternatives you've considered

No response

Additional context

No response

贡献者指南