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
b70f4c4f
Commit
b70f4c4f
authored
7 years ago
by
rithu leena john
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #989 from rithujohn191/ldap-docs
Documentation: add a group query example for the ldap connector.
parents
377d9b44
6f9127b4
Branches
Branches containing commit
Tags
Tags containing commit
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 @
b70f4c4f
...
@@ -191,6 +191,32 @@ groupSearch:
...
@@ -191,6 +191,32 @@ groupSearch:
# Unique name of the group.
# Unique name of the group.
nameAttr
:
cn
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
## 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