[qgis-qwc2] Setting up LDAP authentication with QWC2

Cahill, Benjamin bcahill at alertacademy.com
Thu Apr 24 08:35:18 PDT 2025


Hello,

I am new to the QGIS world but loving it. I have set up QWC2 using
Docker and it is working well. I would like to set up LDAP
authentication, but I'm not sure where to start.

The only documentation I found was on this page:
https://qwc-services.github.io/master/references/qwc-ldap-auth_readme/

I added the qwc-ldap-auth container to my docker-compose
configuration, but I don't know what to do next.

Do I need to add users to the qwc_admin area first before authenticating?

Do I need to remove the qwc-db-auth container?

Does the qwc-ldap-auth container need access to the qwc-services configuration?

Do I need to change anything to the config-in directory?

Is my docker-compose configuration for this correct, or do I need to
change anything? (sensitive details have been obfuscated)

  qwc-ldap-auth:
    container_name: qwc-ldap-auth
    image: sourcepole/qwc-ldap-auth:v2024.2-lts
    restart: unless-stopped
    environment:
      LDAP_HOST: domaincontroller.mydomain.com
      LDAP_PORT: 3269
      LDAP_USE_SSL: True
      LDAP_BASE_DN: DC=mydomain, DC=com
      LDAP_USER_DN:
      LDAP_BIND_USER_DN: CN=lookupUser, CN=Users, DC=mydomain, DC=com
      LDAP_BIND_USER_PASSWORD: password
      LDAP_USER_LOGIN_ATTR: sAMAccountName

Thank you very much for your time.

 - Benjamin


More information about the qgis-qwc2 mailing list