Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dex
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hdacloud
dex
Commits
6f9127b4
Commit
6f9127b4
authored
7 years ago
by
rithu john
Browse files
Options
Downloads
Patches
Plain Diff
Documentation: add a group query example for the ldap connector.
parent
377d9b44
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Documentation/ldap-connector.md
+26
-0
26 additions, 0 deletions
Documentation/ldap-connector.md
with
26 additions
and
0 deletions
Documentation/ldap-connector.md
+
26
−
0
View file @
6f9127b4
...
...
@@ -191,6 +191,32 @@ groupSearch:
# Unique name of the group.
nameAttr
:
cn
```
To extract group specific information the
`DN`
can be used in the
`userAttr`
field.
```
# Top level object example.coma in LDIF file.
dn: dc=example,dc=com
objectClass: top
objectClass: dcObject
objectClass: organization
dc: example
```
The following is an example of a group query would match any entry with member=
<user
DN
>
:
```
yaml
groupSearch
:
# BaseDN to start the search from. It will translate to the query
# "(&(objectClass=group)(member=<user DN>))".
baseDN
:
cn=groups,cn=compat,dc=example,dc=com
# Optional filter to apply when searching the directory.
filter
:
"
(objectClass=group)"
userAttr
:
DN
# Use "DN" here not "uid"
groupAttr
:
member
nameAttr
:
name
```
## Example: Searching a FreeIPA server with groups
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment