Skip to content

Commit

Permalink
docs(readme) add LDAP group filter details (#509)
Browse files Browse the repository at this point in the history
add documentation on how to use differing Membership attributes for LDAP Group filters
  • Loading branch information
chillinger authored Nov 12, 2020
1 parent 8d77717 commit 5f2728e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,29 @@ managerDn: ''
managerPassword: ''
```

In Case your LDAP groups do not use the default UID for group membership, you can solve this using

```yaml
micronaut:
security:
ldap:
default:
search:
base: "OU=UserOU,dc=example,dc=com"
attributes:
- "cn"
groups:
enabled: true
base: "OU=GroupsOU,dc=example,dc=com"
filter: "member={0}"
```
Replace
```yaml
attributes:
- "cn"
```
with your group membership attribute

Debuging ldap connection can be done with
```bash
curl -i -X POST -H "Content-Type: application/json" \
Expand Down

0 comments on commit 5f2728e

Please sign in to comment.