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

Ldap-user with superuser status cant login to admin pages #21

Closed
Chilinot opened this issue Jan 29, 2019 · 3 comments
Closed

Ldap-user with superuser status cant login to admin pages #21

Chilinot opened this issue Jan 29, 2019 · 3 comments

Comments

@Chilinot
Copy link

I have a user that has logged in via his/her ldap-account, which has then been marked as a superuser in the admin pages. But said user is still not able to login to the admin page.

@madmath03
Copy link
Member

Hello,

I hope I'm not too late (sorry for delay) but my guess would be that the issue is with the user's password.
Since the admin pages does not use LDAP but local users info, the user must have a local password, which is currently not set when logging with LDAP.
If you connect to the admin pages and see the user's details, you will probably see that the user has no password. This would confirm my guess.

To solve this, you could ask the user to change its (local) password by going to its Taiga profile page then "change password". After setting its local password, the user should be able to access the admin pages.

It might be a good idea that we set/update the local password with the one provided on each successful LDAP login... but I'm afraid I might not have the time to add this behavior right now.
Any kind soul willing to help would be welcome.

@Chilinot
Copy link
Author

Is it possible for the admin pages to test LDAP first, then local password similarly to how the regular login works?

@madmath03
Copy link
Member

madmath03 commented Feb 28, 2019

Not through any kind of configuration I know of. This extension only impacts Taiga, not the Django backend that generates the admin pages.
If you wanted that, I guess you would need to add a plugin for Django LDAP authentication (like this one https://django-auth-ldap.readthedocs.io/en/latest/) but that would mean you would have 2 LDAP plugins to configure... Not sure that would be a good idea.

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

No branches or pull requests

2 participants