- Technology stack
- Architecture of the Solution
- Installing and Configuring MULTIDIRECTORY
- Configuring Kerberos in the MULTIDIRECTORY Web Interface
- Configuring DNS in the MULTIDIRECTORY Web Interface
- DHCP Configuration
- Domain Trust Configuration
- Group Policy
- Connecting MULTIFACTOR Self-Service Portal to MULTIDIRECTORY
- User, Group, and Resource Management
- Connecting to MULTIFACTOR
- Access Policies
- LDAP Schema
- LDAP Logging Configuration
- Password Policies
- Role and Permission Configuration
- LDAP Authentication in Ansible AWX
- LDAP Authentication in ArgoCD
- LDAP Authentication in GitLab
- LDAP Authentication in GitFlic
- LDAP Authentication in Jenkins
- LDAP Authentication in Harbor
- LDAP Authentication in Nexus
- LDAP Authentication in PostgreSQL
- LDAP Authentication in Rancher
- LDAP Authentication in Proxmox VE
- LDAP Authentication in SpaceVM
- LDAP Authentication in Tantor
- LDAP Authentication in Shturval
- LDAP Authentication in zVirt
- LDAP Authentication in GLPI
LDAP Authentication Setup Guide for Grafana
Overview
This article describes how to configure LDAP authentication in Grafana using MULTIDIRECTORY as the identity provider.
Setup Requirements
- A running MULTIDIRECTORY instance.
- A pre-installed Grafana environment.
Preparation
- Create a dedicated service account in
MULTIDIRECTORYwith read-only permissions to the directory. This account will be used byGrafanato bind and search the LDAP catalog. - Create access groups in
MULTIDIRECTORYforGrafanausers (e.g., grafana-admins, grafana-editors, grafana-viewers) to enable role-based access control withinGrafana.
Configuring Grafana to Work with MULTIDIRECTORY
To enable LDAP authentication, edit the following configuration files on the host where Grafana is installed:
- /etc/grafana/ldap.toml
- /etc/grafana/grafana.ini
If Grafana is deployed in a Docker container, you must apply these configuration changes inside the running container:
docker exec -it (container) bash # Replace <container> with the actual container name or ID (without brackets).
container:/usr/share/grafana/conf# -> The defaults.ini and ldap.toml files are located in the same directory: /etc/grafana/.
Example /etc/grafana/ldap.toml Configuration for MULTIDIRECTORY Integration
[[servers]] host = "your_domain.ru" port = 389 # use port 636 for LDAPS use_ssl = false # true to enable LDAPS start_tls = false ssl_skip_verify = false bind_dn = "cn=admin,ou=users,dc=your_domain,dc=ru" # service account bind_password = 'admin_password' search_filter = "(sAMAccountName=%s)" search_base_dns = ["dc=your_domain,dc=ru"] # search base
Example configuration: /etc/grafana/grafana.ini
[server] # Protocol (http, https, h2, socket) protocol = https # for LDAPS [auth.ldap] enabled = true config_file = /etc/grafana/ldap.toml allow_sign_up = true
After making changes to the configuration files, you must restart the Grafana service.
sudo systemctl restart grafana-server