diff --git a/README.md b/README.md index 8296e58..385a363 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,10 @@ Note: You can use it without NetData, but you'll have to install a collection ap **Don't hesitate to create new dashboards**: the default dashboard contains metrics from NetData, but only generic ones that are generated on every machine. NetData dynamically detects services and applications (e.g.redis, nginx, etc.) and enriches its dashboard and generated metrics. Many NetData metrics don't appear in the provided default Grafana dashboard! -**Warning**: The default dashboard may be updated in a further release of this package, so please make sure you create your own dashboards! +**Warnings**: +* The default dashboard may be updated in a further release of this package, so please make sure you create your own dashboards! +* Organizations creation doesn't play well with LDAP integration; it is disabled for standard users, but can't be disabled for administrators: **please do not create organizations**! --- # Package description: diff --git a/scripts/install b/scripts/install index 5cd67ba..49a1e01 100644 --- a/scripts/install +++ b/scripts/install @@ -120,6 +120,8 @@ grafana_conf="/etc/grafana/grafana.ini" sudo sed -i "/^\[server\]$/,/^\[/ s@;root_url = .*@root_url = https://$domain$path@" $grafana_conf # Disable check for updates sudo sed -i '/^\[analytics\]$/,/^\[/ s/;check_for_updates = .*/check_for_updates = false/' $grafana_conf +# Disable organization creation +sudo sed -i '/^\[users\]$/,/^\[/ s/;allow_org_create = .*/allow_org_create = false/' $grafana_conf # Enable HTTP and LDAP authentication sudo sed -i '/^\[auth.basic\]$/,/^\[/ s/;enabled = .*/enabled = false/' $grafana_conf sudo sed -i '/^\[auth.proxy\]$/,/^\[/ s/;enabled = .*/enabled = true/' $grafana_conf