Skip to content

Commit

Permalink
Improve LDAP group config documentation (#21227) (#26921)
Browse files Browse the repository at this point in the history
backport #21227

author @svenseeberg

Co-authored-by: Sven Seeberg <mail@sven-seeberg.de>
Co-authored-by: Giteabot <teabot@gitea.io>
  • Loading branch information
3 people committed Sep 6, 2023
1 parent 69c4e29 commit b6fd1e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions docs/content/usage/authentication.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,13 @@ Uses the following fields:

- User Attribute in Group (optional)

- Which user LDAP attribute is listed in the group.
- Example: `uid`
- The user attribute that is used to reference a user in the group object.
- Example: `uid` if the group objects contains a `member: bender` and the user object contains a `uid: bender`.
- Example: `dn` if the group object contains a `member: uid=bender,ou=users,dc=planetexpress,dc=com`.

- Group Attribute for User (optional)
- Which group LDAP attribute contains an array above user attribute names.
- Example: `memberUid`
- The attribute of the group object that lists/contains the group members.
- Example: `memberUid` or `member`

## PAM (Pluggable Authentication Module)

Expand Down
9 changes: 5 additions & 4 deletions services/auth/source/ldap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,13 @@ share the following fields:
* Example: (|(cn=gitea_users)(cn=admins))

* User Attribute in Group (optional)
* Which user LDAP attribute is listed in the group.
* Example: uid
* The user attribute that is used to reference a user in the group object.
* Example: uid if the group objects contains a member: bender and the user object contains a uid: bender.
* Example: dn if the group object contains a member: uid=bender,ou=users,dc=planetexpress,dc=com.

* Group Attribute for User (optional)
* Which group LDAP attribute contains an array above user attribute names.
* Example: memberUid
* The attribute of the group object that lists/contains the group members.
* Example: memberUid or member

* Team group map (optional)
* Automatically add users to Organization teams, depending on LDAP group memberships.
Expand Down

0 comments on commit b6fd1e4

Please sign in to comment.