I have config an openldap docker container in my local machine, and then I can query by ldapsearch
. But now how can I set up for my mayans container to use ldap container ?
Below code is my docker-compose file for deploy openldap server
version: '3.9'
name: openldap_test
services:
openldap:
container_name: openldap_test_server
image: bitnami/openldap
ports:
- '1389:1389'
- '1636:1636'
environment:
- LDAP_ADMIN_USERNAME=admin
- LDAP_ADMIN_PASSWORD=adminp
- LDAP_USERS=user01
- LDAP_PASSWORDS=password1
Then I can execute this below command to connect my ldap server:
docker exec openldap_test_server ldapsearch -x -H ldap://localhost:1389 -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w adminp
-
Now how can i configure mayans docker container to use ldap container ?Please help.
I saw a hint at: FAQ — Mayan EDMS 4.4.3 documentation, but I don’t know how to configure with my ldap server ? -
Another question is after changing
ldap_connection_settings.py
, should I re-build a new wheel library and re-install ? Or I should stop all mayans-services, then change supervisor config, then re-start ?