Skip to content

LDAP Connector: Group membership from user attribute #2809

Answered by g1franc
g1franc asked this question in Q&A
Discussion options

You must be logged in to vote

After numerous attempt, I managed to have a working configuration where Dex will get the list of group correctly using configuration:

groupSearch:
      baseDN: ou=groups,o=dcNAME
      filter: (objectClass=corporateGroup)
      groupAttr: cn
      nameAttr: cn
      userAttr: partOf

Here the clever part is to lead Dex to test each group the user is part of and have a 1..1 mapping as it result in a LDAP search group query leading to only checking for group existence.

It will then result in N ldap search group query (which are fast as querying group by primary identifier) where N is the number of group the user is a member.

Log output is then


time="2023-02-02T08:55:32Z" level=info msg="p…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by g1franc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant