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

specifiy admin user via ldap #160

Closed
seal61 opened this issue Feb 3, 2020 · 9 comments · May be fixed by #198
Closed

specifiy admin user via ldap #160

seal61 opened this issue Feb 3, 2020 · 9 comments · May be fixed by #198

Comments

@seal61
Copy link

seal61 commented Feb 3, 2020

Hey,

I have not found a way to grant administrator rights to a user who has logged in via LDAP.
Is this possibility available, if so, where?

Currently I cannot use the local administrator account, because the login mask only refers to LDAP accounts. For this I would first have to deactivate the plugin again.

I would be glad about any information - thanks in advance!

@manics
Copy link
Member

manics commented Feb 4, 2020

Does setting admin_users work?

@dmpe
Copy link

dmpe commented Feb 5, 2020

No, it did not. I had to explicitly disable it because LDAP and Admin_users would not merge....

@jeanparker
Copy link

I was looking for a way to set the admin group for LDAP/Active Directory authentication.
Since switching to LDAP disabled my previous created admin user.

@GlennHD
Copy link

GlennHD commented Apr 24, 2020

This shouldn't be too hard to do based on LDAP group. But until then, just add the following line in your jupyterhub_config.py file.

c.Authenticator.admin_users = {'MY_LDAP_ADMIN_ACCOUNT'}

@seal61
Copy link
Author

seal61 commented Apr 24, 2020

c.LDAPAuthenticator.admin_users = {'username'}

great - this worked for me!
can you also tell me on how to put multiple users there? Separating usernames via comma doesn't work:

c.LDAPAuthenticator.admin_users = {'username,anotheruser,anotheruser'}

This not a big issue, because I'm now able to access the admin GUI again and set more admins there if necessary. I just wonder where the permissions are set / saved - If I change something via GUI nothing seems to change in the jupyterhub_config.py

@GlennHD
Copy link

GlennHD commented Apr 24, 2020

@seal61 so close!!! Try this.

c.Authenticator.admin_users = {'user1', 'user2', 'user3'}

@Aethylred
Copy link

Previous comment worked for me... but...

How do we specify admin using an LDAP group?

...I suspect we need an equivalent to

c.PAMAuthenticator.admin_groups = {'wheel'}

@javad87
Copy link

javad87 commented Dec 13, 2021

c.LDAPAuthenticator.admin_users = {'username'}

great - this worked for me! can you also tell me on how to put multiple users there? Separating usernames via comma doesn't work:

c.LDAPAuthenticator.admin_users = {'username,anotheruser,anotheruser'}

This not a big issue, because I'm now able to access the admin GUI again and set more admins there if necessary. I just wonder where the permissions are set / saved - If I change something via GUI nothing seems to change in the jupyterhub_config.py

How can I define admin users list in config.yaml (or helm values) file for helm deployment?
I used following configuration and hub and all other pods are in running states but still can not see Admin pannel in Control pannel....

I am using latest version of jupyterhub...
Is there any workaround for that?
tnx in advance

@consideRatio
Copy link
Member

We have admin_users and #239 tracks adding admin_groups, going for a close here.

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

Successfully merging a pull request may close this issue.

8 participants