Code Monkey home page Code Monkey logo

Comments (9)

eungjun-yi avatar eungjun-yi commented on July 21, 2024

I guess that docker-compose.yml stores the value as a string, not a python object, and it causes the problem.

from docker-zulip.

galexrt avatar galexrt commented on July 21, 2024

Could you provide an example value for the AUTH_LDAP_USER_SEARCH?
So I can test and fix it properly. Thanks.

from docker-zulip.

galexrt avatar galexrt commented on July 21, 2024

Can you try with the latest v1.3.9 image?

For me I see that the LDAP Settings are now set as they should, as a python object/array, without quotes.

from docker-zulip.

eungjun-yi avatar eungjun-yi commented on July 21, 2024

Thanks. The error does not reproduce anymore at v1.3.9. But now it seems that zulip ignores ZULIP_SETTINGS_AUTH_LDAP_USER_SEARCH in docker-compose.yml and uses AUTH_LDAP_USER_SEARCH in /etc/zulip/settings.py.

I didn't quote the value as follows:

    ZULIP_SETTINGS_AUTH_LDAP_USER_SEARCH: LDAPSearch("ou=mycompany,dc=mycompany,dc=com", ldap.SCOPE_SUBTREE, "(&(mail=%(user)s)(objectClass=user))")

from docker-zulip.

galexrt avatar galexrt commented on July 21, 2024

You have to quote the value in the docker-compose.yml, with single quotes
or double quotes.

Can you do docker cp ZULIP_CONTAINER_NAME:/etc/zulip/settings.py .;cat settings.py and post the output as a gist please?

On Wed, Nov 18, 2015 at 11:29 AM Yi EungJun [email protected]
wrote:

Thanks. The error does not reproduce anymore at v1.3.9. But now it seems
that zulip ignores ZULIP_SETTINGS_AUTH_LDAP_USER_SEARCH in
docker-compose.yml and uses AUTH_LDAP_USER_SEARCH in /etc/zulip/settings.py.

I didn't quote the value as follows:

ZULIP_SETTINGS_AUTH_LDAP_USER_SEARCH: LDAPSearch("ou=mycompany,dc=mycompany,dc=com", ldap.SCOPE_SUBTREE, "(&(mail=%(user)s)(objectClass=user))")


Reply to this email directly or view it on GitHub
#49 (comment)
.

from docker-zulip.

eungjun-yi avatar eungjun-yi commented on July 21, 2024

I quoted it with single quotes.

ZULIP_SETTINGS_AUTH_LDAP_USER_SEARCH: 'LDAPSearch("ou=mycompany,dc=mycompany,dc=com", ldap.SCOPE_SUBTREE, "(&(mail=%(user)s)(objectClass=user))")'

But it still does not work. Here is the output of docker-compose up zulip:

$ docker-compose up zulip
zulip_redis_1 is up-to-date
zulip_memcached_1 is up-to-date
zulip_rabbitmq_1 is up-to-date
zulip_database_1 is up-to-date
Starting zulip_zulip_1
Attaching to zulip_zulip_1
zulip_1 | === Begin Initial Configuration Phase ===
zulip_1 | Preparing and linking the uploads folder ...
zulip_1 | Prepared and linked the uploads directory.
zulip_1 | Executing nginx configuration ...
zulip_1 | Nginx configuration succeeded.
zulip_1 | Exectuing certificates configuration...
zulip_1 | Certificates configuration succeeded.
zulip_1 | Setting Zulip secrets ...
zulip_1 | Secrets already generated.
zulip_1 | Secret found for "email_password".
zulip_1 | Secret found for "rabbitmq_password".
zulip_1 | Zulip secrets configuration succeeded.
zulip_1 | Setting database configuration ...
zulip_1 | Setting key "DATABASES", type "array".
zulip_1 | Database configuration succeeded.
zulip_1 | Setting caches configuration ...
zulip_1 | Setting key "CACHES", type "array".
zulip_1 | Caches configuration succeeded.
zulip_1 | Activating authentication backends ...
zulip_1 | Setting key "AUTHENTICATION_BACKENDS", type "array".
zulip_1 | Adding authentication backend "ZulipLDAPAuthBackend".
zulip_1 | Authentication backend activation succeeded.
zulip_1 | Setting LDAP settings if set ...
zulip_1 | Setting key "LDAP_APPEND_DOMAIN", type "string".
zulip_1 | LDAP settings set.
zulip_1 | Setting redis configuration ...
zulip_1 | Setting key "RATE_LIMITING", type "bool".
zulip_1 | Setting key "REDIS_HOST", type "string".
zulip_1 | Setting key "REDIS_HOST_PORT", type "int".
zulip_1 | Redis configuration succeeded.
zulip_1 | Setting rabbitmq configuration ...
zulip_1 | Setting key "RABBITMQ_HOST", type "string".
zulip_1 | Setting key "RABBITMQ_USERNAME", type "string".
zulip_1 | Rabbitmq configuration succeeded.
zulip_1 | Executing Zulip configuration ...
zulip_1 | Setting key "EMAIL_HOST_USER", type "string".
zulip_1 | Setting key "AUTH_LDAP_SERVER_URI", type "string".
zulip_1 | Setting key "NOREPLY_EMAIL_ADDRESS", type "string".
zulip_1 | Setting key "EMAIL_HOST", type "string".
zulip_1 | Setting key "EXTERNAL_HOST", type "string".
zulip_1 | Setting key "AUTH_LDAP_BIND_DN", type "string".
zulip_1 | Setting key "ADMIN_DOMAIN", type "string".
zulip_1 | Setting key "DEFAULT_FROM_EMAIL", type "string".
zulip_1 | Setting key "AUTH_LDAP_BIND_PASSWORD", type "string".
zulip_1 | Setting key "ZULIP_ADMINISTRATOR", type "string".
zulip_1 | Zulip configuration succeeded.
zulip_1 | Auto backup enabled.

Here is my /etc/zulip/settings.py: https://gist.github.com/npcode/dcff245588768fa30ac7

from docker-zulip.

galexrt avatar galexrt commented on July 21, 2024

Thanks for the settings.py. I'm looking into it.

from docker-zulip.

galexrt avatar galexrt commented on July 21, 2024

@npcode I fixed the problem now. Please repull the v1.3.9 image and try again.
Please remove the old containers before retrying. Thanks.

from docker-zulip.

eungjun-yi avatar eungjun-yi commented on July 21, 2024

Now it works very well. Thanks a lot!

On Thu, Nov 19, 2015 at 4:28 AM, Alexander Trost [email protected]
wrote:

@npcode https://github.com/npcode I fixed the problem now. Please
repull the v1.3.9 image and try again.
Please remove the old containers before retrying. Thanks.


Reply to this email directly or view it on GitHub
#49 (comment)
.

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.