From ec16b0943caa9c6f8d4e84b605d126834e8ee9f0 Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Sat, 29 Apr 2023 20:32:28 +0200 Subject: [PATCH] Fix LDAP authentication --- conf/ldap.toml | 2 ++ scripts/upgrade | 3 +++ 2 files changed, 5 insertions(+) diff --git a/conf/ldap.toml b/conf/ldap.toml index d5d2e75..d9ad4a0 100644 --- a/conf/ldap.toml +++ b/conf/ldap.toml @@ -78,4 +78,6 @@ group_dn = "*" org_role = "Admin" # The Grafana organization database id, optional, if left out the default org (id 1) will be used org_id = 1 +# Make users grafana admins +grafana_admin = true diff --git a/scripts/upgrade b/scripts/upgrade index a6bda64..7c43c61 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -146,6 +146,9 @@ EOF ynh_systemd_action --service_name=netdata --action="restart" fi +# Update Grafana LDAP authentication configuration +cp ../conf/ldap.toml /etc/grafana + # Update default dashboard for NetData (source: https://grafana.com/grafana/dashboards/2701) # Remove new lines tr -d '\n' < ../conf/netdata_dashboard.json > dashboard.json