File tree Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,24 @@ Both the LDAP via BindDN and the simple auth LDAP share the following fields:
92
92
- Example: ` (&(objectClass=posixAccount)(cn=%s)) `
93
93
- Example: ` (&(objectClass=posixAccount)(uid=%s)) `
94
94
95
+ ** Verify group membership in LDAP** uses the following fields:
96
+
97
+ * Group Search Base (optional)
98
+ * The LDAP DN used for groups.
99
+ * Example: ` ou=group,dc=mydomain,dc=com `
100
+
101
+ * Group Name Filter (optional)
102
+ * An LDAP filter declaring how to find valid groups in the above DN.
103
+ * Example: ` (|(cn=gogs_users)(cn=admins)) `
104
+
105
+ * User Attribute in Group (optional)
106
+ * Which user LDAP attribute is listed in the group.
107
+ * Example: ` uid `
108
+
109
+ * Group Attribute for User (optional)
110
+ * Which group LDAP attribute contains an array above user attribute names.
111
+ * Example: ` memberUid `
112
+
95
113
## PAM
96
114
97
115
To configure this you just need to set the 'PAM Service Name' to a filename in ` /etc/pam.d/ ` .
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ name: Changelog
14
14
#### Features
15
15
16
16
- Support two-factor authentication [ #945 ] ( https://github.com/gogits/gogs/issues/945 )
17
+ - Support filter by group membership for LDAP [ #4398 ] ( https://github.com/gogits/gogs/pull/4398 )
17
18
18
19
#### Improvements
19
20
Original file line number Diff line number Diff line change @@ -91,3 +91,21 @@ name: 授权认证
91
91
form.
92
92
- Example: ` (&(objectClass=posixAccount)(cn=%s)) `
93
93
- Example: ` (&(objectClass=posixAccount)(uid=%s)) `
94
+
95
+ ** 验证组成员** 需要填充以下字段:
96
+
97
+ * 组搜索基准 DN(可选)
98
+ * The LDAP DN used for groups.
99
+ * Example: ` ou=group,dc=mydomain,dc=com `
100
+
101
+ * 组名称过滤(可选)
102
+ * An LDAP filter declaring how to find valid groups in the above DN.
103
+ * Example: ` (|(cn=gogs_users)(cn=admins)) `
104
+
105
+ * 包含用户的组属性(可选)
106
+ * Which group LDAP attribute contains an array above user attribute names.
107
+ * Example: ` memberUID `
108
+
109
+ * 组内用户属性(可选)
110
+ * Which user LDAP attribute is listed in the group.
111
+ * Example: ` uid `
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ name: 变更日志
14
14
#### 新增特性
15
15
16
16
- 支持两步验证登录 [ #945 ] ( https://github.com/gogits/gogs/issues/945 )
17
+ - 支持 LDAP 登录时验证组成员身份 [ #4398 ] ( https://github.com/gogits/gogs/pull/4398 )
17
18
18
19
#### 功能改进
19
20
You can’t perform that action at this time.
0 commit comments