How to config ldap authentication

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

  1. 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 ?

  2. 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 ?

sorry but can anyone help me ?
I am newbie with dijango so I don’t know how to make next step

Hi there, I am looking into using ldap as some point in the future so I thought I would chime in and see if I could help. First off tell me about your setup, what version of Mayan are you running, how it is deployed and how your ldap server is networked/connected to your Mayan installation.

Cheers,

Ken

@DocCyblade I both deploy mayans and open-ldap by docker, and both of them are in same network, and their port are linked to local host.
I am using mayan version 4.1