Skip to content

Commit 789bc8e

Browse files
committed
Improve LDAP group config documentation, fixes #21159
1 parent e67ddaa commit 789bc8e

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

docs/content/usage/authentication.en-us.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,13 @@ Uses the following fields:
157157

158158
- User Attribute in Group (optional)
159159

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

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

167168
## PAM (Pluggable Authentication Module)
168169

services/auth/source/ldap/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,13 @@ share the following fields:
114114
* Example: (|(cn=gitea_users)(cn=admins))
115115

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

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

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

0 commit comments

Comments
 (0)