Grafana Version 4 Integration With Active Directory On CentOS 7

Grafana Version 4 Integration, AD is a database that keeps track of all the user accounts and passwords in your organization.

Grafana Version 4 Integration With Active Directory:

It allows you to store your user accounts and passwords in one protected location, improving your organization’s security.

Check Out: Step By Step Installation of Grafana On Redhat/CentOs 6/7 Version

LDAP Authentication

Grafana ships with a strong LDAP integration feature. The LDAP integration in Grafana allows your Grafana users to login with their LDAP credentials. You can also specify mappings between LDAP group memberships and Grafana Organization user roles.

LDAP File is Located at /etc/grafana/ldap.toml. These are the default setting in ldap.toml.

Step 1: We need to change Host(Active Directory IP) and Port in the ldap.toml file. By default, the port will be 389. Keep it the same if you’re not going to use SSL. Otherwise, use port 636 with SSL.

Step 2: Create a user in AD And set the password. Refer to the screenshot for default settings.

Check Out: How To Force Quit Application Running on Windows 8/10

After the creation of the AD account and password, change the bind_dn and bind_password as given in the screenshot.

Note: bind_dn and bind_password is the same as user credential in the AD server.

Change the search_filter = “(sAMAccountName=%s)”

Step 3: Locate search_base_dns and change the dc values as given  below

search_base_dns = [“dc=your-domain,dc=com”]

Step 4: Next step is to make changes in Servers.Attributes

In case of Grafana version 4.x.x, Change to Search_filter = “(sAMAccountName=%s)”

Step 5: Save the file with the changes made.

Check Out: How to Enable QR Code Generator On Microsoft Edge Browser

Step 6: Restart the service with the following commands.

systemctl restart grafana-server.service

Once service has been restarted, try to login with AD credentials on the Grafana login page.

Point to remember

  1. The default user and password will be admin.
  2. If you want you can change the admin password at first login via GUI.
  3. Take a backup of both files grafana.ini and ldap.toml before making any changes.

You’re done

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment