Skip to content

Commit

Permalink
Merge pull request #54 from idealista/53-add-support-for-ldap-auth-ba…
Browse files Browse the repository at this point in the history
…ck-creating-configxml

ldap support
  • Loading branch information
gallejesus authored May 29, 2023
2 parents 76395ac + 99374ad commit b8b817e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a ch

## [Unreleased](https://github.com/idealista/clickhouse_role/tree/develop)

## [3.3.4(https://github.com/idealista/clickhouse_role/tree/3.3.4 (2023-05-29)

### :heavy_plus_sign: Added

- [#53](https://github.com/idealista/clickhouse_role/issues/53) Add LDAP support for authentication.

## [3.3.3(https://github.com/idealista/clickhouse_role/tree/3.3.3 (2023-03-27)

### :repeat: Updated
Expand Down
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ clickhouse_preferserverciphers_client: true
clickhouse_invalidcertificatehandler:
name: RejectCertificateHandler # Use for self-signed: AcceptCertificateHandler

# Specify backend authenticacion: AD / LDAP (By default, AD)
clickhouse_auth_backend: AD

# LDAP
# clickhouse_ldap:
# serverame:
Expand Down
4 changes: 2 additions & 2 deletions templates/config.xml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -508,11 +508,11 @@
{% if clickhouse_ldap.port is defined -%}<port>{{ clickhouse_ldap.port }}</port>{% endif -%}
{% if clickhouse_ldap.bind_dn is defined -%}<bind_dn>{{ clickhouse_ldap.bind_dn }}</bind_dn>{% endif -%}
{% if clickhouse_ldap.base_dn is defined or clickhouse_ldap.scope or clickhouse_ldap.search_filter -%}
<user_dn_detection>
{% if clickhouse_auth_backend == 'AD' -%}<user_dn_detection>{% endif -%}
{% if clickhouse_ldap.base_dn is defined -%}<base_dn>{{ clickhouse_ldap.base_dn }}</base_dn>{% endif -%}
{% if clickhouse_ldap.scope is defined -%}<scope>{{ clickhouse_ldap.scope }}</scope>{% endif -%}
{% if clickhouse_ldap.search_filter is defined -%}<search_filter>{{ clickhouse_ldap.search_filter }}</search_filter>{% endif -%}
</user_dn_detection>
{% if clickhouse_auth_backend == 'AD' -%}</user_dn_detection>{% endif -%}
{% endif -%}
{% if clickhouse_ldap.verification_cooldown is defined -%}<verification_cooldown>{{ clickhouse_ldap.verification_cooldown }}</verification_cooldown>{% endif -%}
{% if clickhouse_ldap.enable_tls is defined -%}<enable_tls>{{ clickhouse_ldap.enable_tls }}</enable_tls>{% endif -%}
Expand Down

0 comments on commit b8b817e

Please sign in to comment.