Comments (9)
I guess that docker-compose.yml stores the value as a string, not a python object, and it causes the problem.
from docker-zulip.
Could you provide an example value for the AUTH_LDAP_USER_SEARCH
?
So I can test and fix it properly. Thanks.
from docker-zulip.
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.
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.
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.
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.
Thanks for the settings.py. I'm looking into it.
from docker-zulip.
@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.
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)
- rocketchat migration KeyError: 'username' HOT 1
- Traefik as a Reverse Proxy with Docker Swarm HOT 2
- update to a newer database contaier HOT 1
- RabbitMQ in docker compose file is very out of date
- Can't backup Zulip the way it is documented HOT 1
- Memcached won't start - can't create /home/memcached/memcached.conf in nonexistent directory HOT 1
- noreply invite emails sending HOT 1
- /json/messages endpoint returns 500
- Wrong database tables for docker with Zulip 7.0
- sudo zulip_volume_sync() causes SIGBUS error and read-only filesystem
- exec /sbin/entrypoint.sh: exec format error
- "exec /sbin/entrypoint.sh: exec format error" HOT 4
- 8.3 upgrade issue HOT 3
- Dependency issues on upgrade to 8.3
- Expecting "SOCIAL_AUTH_GITHUB_KEY", type "integer" HOT 7
- Using External host for dependencies in Kubernetes Helm Chart HOT 1
- Rocket.Chat migration error 'list index out of range' during data convertation
- docker-zulip behind "docker Caddy" as reverse proxy has problems with CSS and scripts HOT 7
- build failed because of timeout (curl command)
- Allow setting SCIM_CONFIG via env var HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-zulip.