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

Admin user not working after ading this plugin #20

Closed
titansmc opened this issue Dec 12, 2018 · 6 comments · Fixed by #23
Closed

Admin user not working after ading this plugin #20

titansmc opened this issue Dec 12, 2018 · 6 comments · Fixed by #23
Labels
bug Something isn't working

Comments

@titansmc
Copy link

The admin user cannot do login anymore after adding LDAP plugin. Is it somehow related?

@j-kwan
Copy link

j-kwan commented Dec 12, 2018

The backend is not using LDAP authentication.
You have to login with the local account.

@madmath03
Copy link
Member

Hello @titansmc ,

As mentioned by @j-kwan, the backend is not using the LDAP authentication and relies only on the local account, but it is important to note that the LDAP plugin will automatically create a local user at the first LDAP login.
This means that you can make a LDAP user a "super admin" and to allow access to the backend.

Right now, it is only possible to give those access through the backend so you need another admin account. See #17 for the open discussion about it. Any help to implement the discussed feature is appreciated 😅

But I would like to go back to what you said. You are mentioning that "the admin user cannot do login anymore ".
Does that mean you have a local user with the admin rights ? If so, I'm guessing you created a similar user in your LDAP and are now expecting to login with the same account but using your LDAP password, is that correct ?

If that's the case, then you should be able to login as usual but using your local password. Take a look at issue #18 for a similar situation.

If my guess is wrong, feel free to give us a bit more details about your situation.

@titansmc
Copy link
Author

titansmc commented Dec 13, 2018 via email

@scheiblr
Copy link

I have the same issue: either ldap users work or local users, but not both.

@scheiblr
Copy link

After reading some of the code, I just got aware of LDAP_FALLBACK.

By uncommenting the following line in settings/local.py, the issue got solved and everything works as expected

LDAP_FALLBACK = "normal"

@titansmc I suggest you to check that, too.

@madmath03
Copy link
Member

As @scheiblr said, the LDAP_FALLBACK feature is there to allow to both LDAP and local users to log in.

@titansmc Feel free to close this issue if that solve it.

For the future and maybe to avoid problems like that, would you guys think that this LDAP_FALLBACK should be enabled by default ?
My point in not making it default was that, most of the time, when you use Taiga with LDAP you probably do not want users outside of your company to login, but I might be wrong in what most of people want to do when using Taiga/LDAP.

@madmath03 madmath03 added the bug Something isn't working label Mar 14, 2019
@madmath03 madmath03 mentioned this issue Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants