Skip to content

Commit

Permalink
local dev: add group config for local ldap setup
Browse files Browse the repository at this point in the history
- add example group setup for local ldap dev
- with this config, users in the local ldap will
be added to a group, and the integration with local UAA
with pipe in the ldap group into UAA as scope, verbatim
  • Loading branch information
peterhaochen47 committed Sep 19, 2024
1 parent 5f6d3c9 commit 8c290fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/ldap/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
- LDAP_ADMIN_PASSWORD=password
- LDAP_USERS=user01,user02
- LDAP_PASSWORDS=password1,password2
- LDAP_GROUP=some-ldap-group
volumes:
- 'openldap_data:/bitnami/openldap'

Expand Down
12 changes: 11 additions & 1 deletion uaa/src/main/resources/uaa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -570,4 +570,14 @@ ldap:
userDn: 'cn=admin,dc=test,dc=com'
password: 'password'
searchBase: 'dc=test,dc=com'
searchFilter: 'cn={0}'
searchFilter: 'cn={0}'
groups:
file: ldap/ldap-groups-as-scopes.xml
searchBase: 'dc=test,dc=com'
groupRoleAttribute: 'cn'
groupSearchFilter: 'member={0}'
searchSubtree: true
maxSearchDepth: 10
autoAdd: true
externalGroupsWhitelist:
- '*'

0 comments on commit 8c290fc

Please sign in to comment.