DependencyTrack / DependencyTrack/dependency-track

Dependency Track is not mapping LDAP users to LDAP group mapped teams.

Open
#2,776 2 comments 0 reactions 0 assignees View on GitHub
defect in triage
Dominant language
Java
Stars
4.2k
Forks
811
Avg merge
8h 39m
Merged PRs (30d)
237

Description

### Current Behavior

Upon initial login with ldap credentials and having mapped the Dependency Track team to its corresponding LDAP group. The new LDAP user is not mapped to a Dependency Track team.

### Steps to Reproduce

1. Set up the LDAP configurations in Dependency Track's yaml file with the appropriate values for your env ALPINE_LDAP_ATTRIBUTE_MAIL=mail
ALPINE_LDAP_ATTRIBUTE_NAME=samAccountName
ALPINE_LDAP_AUTH_USERNAME_FORMAT=%s
ALPINE_LDAP_BASEDN=ou=dtrckUsers,dc=ad,dc=companyx,dc=net
ALPINE_LDAP_BIND_PASSWORD=super_secret_password
ALPINE_LDAP_BIND_USERNAME=CN=Dependency Track LDAP,OU=ServiceAccounts,DC=ad,DC=companyx,DC=net
ALPINE_LDAP_ENABLED=true
ALPINE_LDAP_GROUPS_FILTER=(&(objectClass=group)(objectCategory=Group))
ALPINE_LDAP_GROUPS_SEARCH_FILTER=(&(objectClass=group)(objectCategory=Group)(cn=*{SEARCH_TERM}*))
ALPINE_LDAP_SERVER_URL=ldaps://dc03.ops.companyx.net:636
ALPINE_LDAP_TEAM_SYNCRONIZATION=true
ALPINE_LDAP_USERS_SEARCH_FILTER=(&(objectClass=user)(objectCategory=Person)(cn=*{SEARCH_TERM}*))
ALPINE_LDAP_USER_GROUPS_FILTER=(member:1.2.840.113556.1.4.1941:={USER_DN})
ALPINE_LDAP_USER_PROVISIONING=true

2. Deploy dependency track
3. login with adimin username/password
4. map a team to the it's LDAP counterpart
5. login with a user that belongs to the mapped team

### Expected Behavior

The behavior I am expecting is that upon a users initial login, they are automatically assigned to the correct DT team based on the LDAP group they belong to.

### Dependency-Track Version

4.8.1

### Dependency-Track Distribution

Container Image

### Database Server

PostgreSQL

### Database Server Version

14.7

### Browser

Google Chrome

### Checklist

- [X] I have read and understand the [contributing guidelines](https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#filing-issues)
- [X] I have checked the [existing issues](https://github.com/DependencyTrack/dependency-track/issues) for whether this defect was already reported

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.