Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test user mapping for LDAP not visible- Grafana 10.1.0 #73884

Closed
mhollstein opened this issue Aug 28, 2023 · 15 comments
Closed

Test user mapping for LDAP not visible- Grafana 10.1.0 #73884

mhollstein opened this issue Aug 28, 2023 · 15 comments
Assignees

Comments

@mhollstein
Copy link

mhollstein commented Aug 28, 2023

What happened?

Test user mapping for LDAP not visible in Grafana 10.1.0. Menu Authentication is missing
See: #71285

Grafana 10 1 0 no menu Authentication

What did you expect to happen?

"Test user mapping" for LDAP is visible in Grafana 10.1.0

Did this work before?

Grafana 10.0.3

Test user mapping Grafana 10 0 3

How do we reproduce it?

  1. Install Grafana with Docker Image: docker pull grafana/grafana:10.1.0
  2. Have a look at: Auth: Move LDAP debug to Authentication menu.
  3. But: Authentication menu is not visible

Is the bug inside a dashboard panel?

The bug is inside the menu structure I think.

Environment (with versions)?

Grafana: 10.1.0
OS: docker Image: docker pull grafana/grafana:10.1.0
Browser: Chrome 116.0.5845.97 (Offizieller Build) (64-Bit)

Grafana platform?

Docker

Datasource(s)?

no

@mhollstein
Copy link
Author

Where to find "Test user mapping" in Grafana 10.1.0 and above?

@eleijonmarck eleijonmarck self-assigned this Aug 28, 2023
@eleijonmarck
Copy link
Contributor

@mhollstein thx for submitting the issue. I have been able to replicate the issue. We will be getting back with a fix as soon as we have that inplace.

@eleijonmarck
Copy link
Contributor

this should now be fixed and out with 10.1.1 - #73941

@mhollstein
Copy link
Author

mhollstein commented Sep 13, 2023

I still can't see the LDAP menu in Grafana 10.1.1 Please check and give me a screenshot.

2023-09-13 07_27_20-Grafana

@eleijonmarck
Copy link
Contributor

@mhollstein could you help me identify a could of things?

What role is user you are using?

What are the configuration settings in your ini file?

  • Do you have LDAP enabled for instance?
[auth.ldap]
enabled = true
config_file = /etc/grafana/ldap.toml
allow_sign_up = true
skip_org_role_sync = false

I have tried with a new installation of Grafana where I login as an admin.

Without LDAP enabled, the authentication tab is not going to be visable.

You need to have LDAP enabled for the authentication tab to be shown.

If you set the

[auth.ldap]
enabled=true

It should show up, let me know if this is not the case

@mv-fachilles
Copy link

Having the same issue with v10.1.1 and LDAP is enabled:
image

@This-is-me-now
Copy link

We have the same problem... also no improvement with updating to 10.1.1. As one of my colleagues pointed out, fix is also not described in 10.1.1 change log so I asume this will be included in the next release at the earliest.

@mhollstein
Copy link
Author

In 10.1.1 it is not visible with active LDAP.

@a1ea321
Copy link

a1ea321 commented Oct 1, 2023

Same here. I used grafana/grafana:10.1.1 (docker). LDAP was working fine. I synced the users. Logged in with them. After a while (after I restarted the OpenLDAP server?) it stopped working. When a user tries log in, the account gets disabled. When I click on Enable user from /admin/users/edit/<N>, it says Could not enable external user.

@kiper-prog
Copy link

In 10.1.2 it is also not visible when LDAP is active.

@eleijonmarck eleijonmarck reopened this Oct 16, 2023
@eleijonmarck
Copy link
Contributor

eleijonmarck commented Oct 16, 2023

I see no issues from the current setup. The following is a clean grafana setup from scratch from main where we have not changed any of the settings.

I am able to see the LDAP configuration via:

  • start grafana with [auth.ldap] enabled=true
  • login as serveradmin
  • go to /admin/authentication
  • go to the LDAP configuration page

My initial thoughts was:

  • perhaps the authentication page is not shown, due to the LDAP server not responding, however even with a failed configuration the page is loading.
Screen.Recording.2023-10-16.at.19.20.58.mov

Next steps are to check this with a docker container

@eleijonmarck
Copy link
Contributor

eleijonmarck commented Oct 16, 2023

@kiper-prog
@a1ea321
@mhollstein
@mv-fachilles

Could you provide which role you are assign within the org? Are you server admins? What are your expectations here?

You are only able to view the LDAP authentication tab if you are a ServerAdmin

@mhollstein
Copy link
Author

Hello Eric,
I am a ServerAdmin. I've done an update from 10.1.2 to 10.1.5 and now I can see the "Authentication" inside the Administration menu. Here are the screenshots: #75364

@mv-fachilles
Copy link

@eleijonmarck my user is server admin
image

But same as @mhollstein the issue is solved for me with upgrading to v10.1.5

@eleijonmarck
Copy link
Contributor

thank you all for confirming. The fix is to upgrade to version v10.1.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants