semaphoreui/semaphore

Problem: connect to LDAP/LDAPS from Docker

akupreev opened this issue · 0 comments

Issue

Colleagues, good afternoon.
I encountered a problem enabling LDAP/LDAPS authorization in semaphore.
Semaphore is deployed in docker-container using docker-compose, when deployed, the config.json configuration is not pulled from the compose.yml file, namely, the configuration from the SEMAPHORE_LDAP_MAPPING_* values ​​is not pulled up.
Configuration example:

SEMAPHORE_LDAP_ACTIVATED: "yes"
SEMAPHORE_LDAP_HOST: "example.com"
SEMAPHORE_LDAP_PORT: "636"
SEMAPHORE_LDAP_DN_BIND: "cn=test,ou=service,ou=Accounts,ou=Organization,dc=example,dc=com"
SEMAPHORE_LDAP_PASSWORD: "secret-password"
SEMAPHORE_LDAP_DN_SEARCH: "dc=example,dc=com"
SEMAPHORE_LDAP_NEEDTLS: "yes"
SEMAPHORE_LDAP_SEARCH_FILTER: "(&(sAMAccountName=%s)(memberOf=ou=Users,ou=Organization,dc=example,dc=com))"
SEMAPHORE_LDAP_MAPPING_DN: "dn"
SEMAPHORE_LDAP_MAPPING_MAIL: "{{userPrincipalName}}@example.com"
SEMAPHORE_LDAP_MAPPING_UID: "sAMAccountName"
SEMAPHORE_LDAP_MAPPING_CN: "cn"

Tell me please where I made a mistake?

Impact

Docker

Installation method

Docker

Database

Postgres

Browser

Chrome

Semaphore Version

2.9.112

Ansible Version

No response

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

No response