Helm Chart - how to add ldap to Password authenticator #17531
Replies: 3 comments 6 replies
-
|
@preetsindhal I am facing the same requirements, If you come up with any solution, could you please share it with me. great thanks. |
Beta Was this translation helpful? Give feedback.
-
|
I am facing the same requirements, If you come up with any solution, could you please share it with me. great thanks. |
Beta Was this translation helpful? Give feedback.
-
|
That's quite an old discussion, but I had the same issue and was able to solve it without modifying helm chart or creating a custom docker image. That's for you, whoever you are from the future reading this. Even though mainterners of the helm chart are not so keen adding support for LDAP, the chart itself is very well written and can pass a lot of custom configuration. In order for Trino to use LDAP for authentication, you need this configuration in your server:
config:
authenticationType: PASSWORD
coordinatorExtraConfig: |
password-authenticator.config-files=/etc/trino/ldap.properties
coordinator:
additionalConfigFiles:
ldap.properties: |
password-authenticator.name=ldap
ldap.url=ldap://<your-ldap-host>
# ...other bits of ldap configuration you need, see https://trino.io/docs/current/security/ldap.htmlThat's it. You are likely to be required to set up TLS as well but I leave it as a homework for students if you haven't done this already. As a bonus, you can have both file-based and LDAP-based authentication at the same time if you'd like. For this use server:
coordinatorExtraConfig: |
password-authenticator.config-files=/etc/trino/password-authenticator.properties,/etc/trino/ldap.properties |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Password authenticator name is set to
fileif authenticationType isPASSWORDhttps://github.com/trinodb/charts/blob/main/charts/trino/templates/configmap-coordinator.yaml#L95
How to change this from
filetoldapThanks.
Beta Was this translation helpful? Give feedback.
All reactions