Is there a way to implement anonymous auth and ldap auth mix in grafana

#1

I heve enabled both the auth types: Still i cannot see the dashboards if i log out. Its shows me login screen.

I also tried hiding the login screen but it still no success.

#################################### Auth LDAP ##########################
[auth.ldap]
enabled = true
config_file = /etc/grafana/ldap.toml
allow_sign_up = true

#################################### Anonymous Auth ##########################
[auth.anonymous]

enable anonymous access

enabled = true

specify organization name that should be used for unauthenticated users

org_name = Main Org.

specify role for unauthenticated users

org_role = Viewer

#2

Hey @fazeclan28, can you share Grafana version you are using?

#3

We are using grafana 5.3.2

#4

I tested it in 5.3.2 and it works fine for me so there does not seem to be some obvious bug. Also it does not seem the ldap should interfere with anonymous access.

One thing you can check is if Main Org. exists and was not deleted. If it exists, can you please share any logs and your full config (removing any confidential details)?

#5

Hi Andrej,

Seems like the problem was Org Name. Thanks for helping

Everything is working perfectly now