-
Notifications
You must be signed in to change notification settings - Fork 36
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: more then one mail
entry per user - login fails
#22
Comments
can you post also the content of your .env file? |
yeah
|
A - i see: can you remove |
I removed the Where i find the |
Both login with
and uid/password
does not work. |
How did you configure dap-overleaf-sl/nginx/sharelatex.conf Are those accounts in the ldap? Please try accounts which are in the ldap directory server |
using the combination email/password
same for the uid/password combination
I tried something elase which does not exicts in the LDAP
Every error looks the same it cant read |
I see: can you set a LDAP_USER_FILTER... |
sure i can but whats the correct value? I've tested: It immediately teels me then i try different kombination that everything is wrong email/password or uid/password. |
In the logs i can see: |
these are my current
Do i need to set |
after a while i've managed to set the correct
I figured one bug which was if the user has more then one email the login fails you can see it in the professor account he has two mails. With one mail no problem. You can close this. I solved it. Thanks for your support. |
mail
entry per user - login fails
I renamed the Issue to: LDAP: more then one Notes: This has to be fixed in ldap-overleaf-sl/sharelatex/AuthenticationManager.js (Line: 314). Additionally we could use this test ldap an the configuration from this issue to start solving issue #7. |
Posted by @Wurzelmann in #62:
|
this only holds if your uid is part of the email in a very specific way - for our ldap server this is really not true because we have users with mails addresses from different providers. I think the following code-snippet would solve the multiple mail-adress issues: // Check if 'mail' is an array with more than one entry
if (Array.isArray(obj['mail']) && obj['mail'].length > 1) {
entry['email'] = obj['mail'][0]; // Use the first email if multiple are present
} else {
entry['email'] = obj['mail']; // Use the single email directly
} |
Hi guys,
i just tried to implement a simple docker-compose with a generic test-ldap. It starts but not more. I cant login. I've tried a lot but nothing seems to work. The problem is always the same
For my test-ldap I use this: https://github.com/rroemhild/docker-test-openldap
The other containers a stright forward I guess (see my docker-compose below).
This is the Problem I face everytime I tried to login with a account
I follow the instruction with clearing enbaling and so on but it doesn't help.
I also set this
ENV
to true and false. Nothing helps. I googled a lot nothing helps. What is wrong? Anybody had the same problem?I always get a 403 on /login when i look at the chrome dev-tools.
What I assume?
I assume after starting a complete new docker-compose with the ldap and the overleaf-ldap to login with the
[email protected]
and the passwordprofessor
. But this doesn't work for any reason.Thank you very much for any help :)
P.S.
This is my docker-compose:
The text was updated successfully, but these errors were encountered: