I have LDAP auth configured which is working okay. I’ve also got send_user_header set to true but the datasource is not getting the X-Grafana-User header
e.g. all it gets is
POST /api/v1/query_range HTTP/1.1
Host: xxxx:yyyy
Accept-Encoding: gzip
Content-Length: 179
Content-Type: application/x-www-form-urlencoded
User-Agent: Grafana/8.3.0
Any pointers on where to look for what’s wrong?
Seems to be a problem in 8.3.0. Running with 7.5.11 docker image gives the expected behavior, i.e.
GET /api/v1/metadata HTTP/1.1
Host: xxxx:yyyy
Accept: application/json, text/plain, /
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.5
Dnt: 1
User-Agent: Grafana/7.5.1
X-Forwarded-For: xxxxxxxxxxx, yyyyyyyyyy
X-Grafana-Org-Id: 1
X-Grafana-User: admin
Still see an issue with LDAP and X-Grafana-User. If I login with a user where the auth is done by LDAP, then X-Grafana-User head is sent but the value is empty.
GET /api/v1/metadata HTTP/1.1
Host: xxxx:yyyy
Accept: application/json, text/plain, /
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.5
Dnt: 1
User-Agent: Grafana/7.5.11
X-Forwarded-For: ip, ip
X-Grafana-Org-Id: 1
X-Grafana-User:
Issue with LDAP is the mapping of LDAP user to Grafana username which can be fixed with
username = in servers.attributes