Skip to content

Problem: Mapping roles to users from LDAP #3226

@Zhookoff

Description

@Zhookoff

Issue

Hello.
I run with Docker-Compose, specify the following parameters:

SEMAPHORE_LDAP_ENABLE: "True"
SEMAPHORE_LDAP_SERVER: "x.x.x.x:389"
SEMAPHORE_LDAP_BIND_DN: "cn=ldap_user,ou=AnsibleSemaphore,ou=Services,ou=TG,dc=tg,dc=local"
SEMAPHORE_LDAP_BIND_PASSWORD: "******"
SEMAPHORE_LDAP_SEARCH_DN: "dc=tg,dc=local"
SEMAPHORE_LDAP_SEARCH_FILTER: "(&(sAMAccountName=%s))"
SEMAPHORE_LDAP_MAPPING_DN: "dn"
SEMAPHORE_LDAP_MAPPING_MAIL: "mail"
SEMAPHORE_LDAP_MAPPING_UID: "sAMAccountName"
SEMAPHORE_LDAP_MAPPING_CN: "cn"

Login to WEB GUI as a domain user is successful, but he has no rights.

How can I assign him a role?

And most importantly, is it possible to do it somehow automatically based on Active Directory groups, i.e. if the user is in the AD group "Semaphore_Users", then upon login he is assigned the required role in Ansible Semaphore?

Impact

Docker

Installation method

Docker

Database

MySQL

Browser

Firefox

Semaphore Version

v2.16.18

Ansible Version

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

No response

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions