* chore: add anonymous roles to fix the issue (#114) * docs: add release notes * chore: change config key * docs: update release notes * chore: update comment --------- Co-authored-by: hardy <luohf@infinilabs.com>
This commit is contained in:
parent
1b6855673b
commit
ea73bf9510
|
@ -25,6 +25,7 @@ Information about release notes of INFINI Console is provided here.
|
|||
- Add Copy request to alerting chart
|
||||
- Add credential settings for agent in enrolling agent
|
||||
- Add collection mode to cluster editing
|
||||
- Add default roles to fix the issue (#114) (#130)
|
||||
|
||||
## 1.28.1 (2025-01-24)
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ title: "版本历史"
|
|||
- 在注册 Agent 中新增 Agent 凭据设置
|
||||
- 在集群编辑中新增采集模式
|
||||
- 当使用 Easysearch 存储指标时,自动为系统集群创建 Agent 指标写入最小权限用户 (#120)
|
||||
- 修复 LDAP 用户映射增加默认权限组 (#114) (#130)
|
||||
|
||||
## 1.28.1 (2025-01-24)
|
||||
|
||||
|
|
|
@ -48,6 +48,7 @@ type LDAPConfig struct {
|
|||
UidAttribute string `config:"uid_attribute"`
|
||||
GroupAttribute string `config:"group_attribute"`
|
||||
|
||||
DefaultRoles []string `config:"default_roles"`
|
||||
RoleMapping struct {
|
||||
Group map[string][]string `config:"group"`
|
||||
Uid map[string][]string `config:"uid"`
|
||||
|
@ -93,6 +94,9 @@ func (r *LDAPRealm) mapLDAPRoles(authInfo auth.Info) []string {
|
|||
}
|
||||
}
|
||||
|
||||
//auto append default roles
|
||||
ret = append(ret, r.config.DefaultRoles...)
|
||||
|
||||
return ret
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue