You can see we have already configured settings for Active directory with Grafana version 4.x.x in our previous post.
Now there is a little modification required for version 5.x.x in Grafana ldap file located at /etc/grafana/ldap/toml
In Section [server.attribute] ,
You have to change Username = ” sAMAccountName”
Now restart the Grafana server service and try to login with Active directory credential on GUI of Grafana login page.