Giter Site home page Giter Site logo

LDAP backend doesn't work about docker-zulip HOT 18 CLOSED

zulip avatar zulip commented on July 17, 2024
LDAP backend doesn't work

from docker-zulip.

Comments (18)

galexrt avatar galexrt commented on July 17, 2024

Can you run, I think it should be docker exec ZULIP_CONTAINER_NAME cat /var/log/supervisor/*zulip* and post the output as a gist please. That will help debugging the problem.

from docker-zulip.

Seinth avatar Seinth commented on July 17, 2024

https://gist.github.com/Seinth/8bd99e3098d740280dd4

No additional log appear after unsuccessfully login attempt.

from docker-zulip.

galexrt avatar galexrt commented on July 17, 2024

@Seinth Can you provide the output of all zulip-* log files from the container.
Please run tail -n +1 /var/log/supervisor/zulip-* inside the container and post the output.

Could you post your docker-compose.yml (without passwords, secrets), so I can take a look at it and see if there's a problem.

from docker-zulip.

Seinth avatar Seinth commented on July 17, 2024

Other log files are empty (have a look at ls -la output, 5th column contains size). I'll post docker-compose.yml tommorow morning.

from docker-zulip.

Seinth avatar Seinth commented on July 17, 2024

docker-compose.yml
https://gist.github.com/Seinth/b43fa5e1278cae3e819f

from docker-zulip.

galexrt avatar galexrt commented on July 17, 2024

The ZULIP_AUTH_BACKENDS must be for LDAP ZULIP_AUTH_BACKENDS=zproject.backends.ZulipLDAPAuthBackend, see https://github.com/zulip/zulip/blob/master/zproject/local_settings_template.py#L24.

Please try again using the current dev image.

Also see the wiki page https://github.com/Galexrt/docker-zulip/wiki/Zulip-LDAP-Authentication.
BTW The containers doesn't need to be privileged.

from docker-zulip.

Seinth avatar Seinth commented on July 17, 2024

Tested, now I'm getting 500:

500: Internal server error.

Well oops. This one's probably our fault. Sorry about that! Updates on service availability are posted to @ZulipStatus on Twitter.

If you'd like, you can drop us a line to let us know what happened.

No new logs in /var/log/supervisor

AUTH_BACKEND line in docker composer:
- ZULIP_AUTH_BACKENDS=zproject.backends.ZulipLDAPAuthBackend

Container was recreated, stored data were removed.

I'm using privileged mode, because volume is setted to nfs partition.

from docker-zulip.

galexrt avatar galexrt commented on July 17, 2024

@Seinth Are you 100% sure there are no new log lines in /var/log/zulip* and /var/log/supervisor/zulip*?

I try to reproduce.

from docker-zulip.

Seinth avatar Seinth commented on July 17, 2024

So far I was checking only /var/log/supervisor/zulip
In /var/log/zulip 4 file changed after access attempt:
https://gist.github.com/Seinth/051eab3430f368a5e515

from docker-zulip.

galexrt avatar galexrt commented on July 17, 2024

@Seinth Just that you know, I'm looking into this problem. But a fix will take some time, sry bout that.

from docker-zulip.

galexrt avatar galexrt commented on July 17, 2024

BTW I updated the LDAP wiki page https://github.com/Galexrt/docker-zulip/wiki/Zulip-LDAP-Authentication.

I added an env var ZULIP_LDAP_ENABLED to enable the configuration of the LDAP settings (Currently in the latest dev image that is being built). You would need to set ZULIP_LDAP_ENABLED to True in your `docker-compose.ymlยด.

ZULIP_LDAP_ENABLED enables the configuration of LDAP from now on.

from docker-zulip.

galexrt avatar galexrt commented on July 17, 2024

@Seinth I pushed some changes to the dev branch.
Can you repull the image quay.io/galexrt/zulip:dev and try again with the mentioned ZULIP_LDAP_ENABLED set to True.
Thanks for testing this, I personally don't have an LDAP server to test with.

from docker-zulip.

Seinth avatar Seinth commented on July 17, 2024

Thanks! But I have bad news:

I pulled new image, stopped and removed containers, clean volume content and execute docker-compose up.
- ZULIP_LDAP_ENABLED=True is added.

Sam error on web site (500).
https://gist.github.com/Seinth/d33876b50a3532cc299e

from docker-zulip.

galexrt avatar galexrt commented on July 17, 2024

I think I'll see the error now. ImportError: No module named zproject.backends
Thanks for the log. This should be fixed soon.

from docker-zulip.

galexrt avatar galexrt commented on July 17, 2024

@Seinth Can you try again with ZULIP_AUTH_BACKENDS set to ZulipLDAPAuthBackend.

- ZULIP_AUTH_BACKENDS=ZulipLDAPAuthBackend

from docker-zulip.

Seinth avatar Seinth commented on July 17, 2024

Login screen now appear, while trying to log in I got:
Please enter a correct email and password. Note that both fields may be case-sensitive.
The only interesting part of log:
https://gist.github.com/Seinth/d310543d6ec9a46ece4f

Do you know where I can look for LDAP log?

from docker-zulip.

Seinth avatar Seinth commented on July 17, 2024

I was able to get another 500 while trying to "register":
https://gist.github.com/Seinth/6bb07da8a6f6e54ba991

from docker-zulip.

galexrt avatar galexrt commented on July 17, 2024

@Seinth In the log https://gist.github.com/Seinth/6bb07da8a6f6e54ba991 the problem is that you didn't configure a working/reachable smtp server. A working smtp server is needed from zulip.

I don't see a problem with docker-zulip in the log https://gist.github.com/Seinth/d310543d6ec9a46ece4f.
I can't really help you with LDAP, because I don't have a LDAP server.
I would therefore advise you to create a ticket at the official zulip/zulip project and ask for help about LDAP authentication problem there.

I'm closing this as I can't really help with what seems like a problem on zulip's side. I hope I could help a bit by fixing the bugs with the image.

from docker-zulip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.