'LDAP configuration not picked up by grafana.ini during Helm chart install
I have installed kube-prometheus-stack-9.4.5 operator using Helm, mostly with default settings by passing custom values.yaml for Grafana URLs and LDAP configuration. I could access Grafana dashboard and also see the configuration in grafana.ini when I exec into Grafana container. I then added LDAP settings as below to the YAML file and noticed that none of the LDAP information is updated in grafana.ini file. The container has admin.ldap flag set to true in grafana.ini but don’t see LDAP configuration either in the secret or in /etc/grafana/ldap.toml or in the secret. The /etc/grafana/ldap.toml has default LDAP settings and don’t see any custom values specified in values.yaml.
grafana:
enabled: true
namespaceOverride: ""
rbac:
pspUseAppArmor: false
grafana.ini:
server:
domain: sandboxgrmysite.com
#root_url: "%(protocol)s://%(domain)s/"
root_url: https://sandboxgrmysite.com/grafana/
serve_from_sub_path: true
auth.ldap:
enabled: true
allow_sign_up: true
envFromSecret: "grafana-ldap-cred"
ldap:
enabled: true
existingSecret: ""
config: |-
verbose_logging = true
[[servers]]
host = "my.ldap.server.com"
port = 636
use_ssl = true
root_ca_cert = "/home/myid/CA_Cert.pem"
start_tls = false
ssl_skip_verify = false
bind_dn = "uid=ldapbind,ou=Users,dc=com"
bind_password = "${LDAP_BIND_PASSWORD}"
search_filter = "(uid=%s)"
search_base_dns = ["dc=com"]
[servers.attributes]
name = "givenName"
surname = "sn"
username = "cn"
email = "mail"
group_search_filter = "(&(objectClass=groupOfUniqueNames)
(uniquemember=%s))"
## An array of the base DNs to search through for groups. Typically uses ou=groups
group_search_base_dns = ["ou=groups,dc=Global,dc=com"]
## the %s in the search filter will be replaced with the attribute defined below
group_search_filter_user_attribute = "uid"
[[servers.group_mappings]]
group_dn = "cn=admin_ldap,ou=Users,dc=com"
org_role = "Admin"
grafana_admin = true
[[servers.group_mappings]]
group_dn = "*"
org_role = "Viewer"
I have looked at this post and compared the configuration, but still no luck. Any clues what is missing here?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
