Open
Conversation
修复当以ldap登录时密码被加密导致无法登录问题
使用真实的DN进行绑定认证,更换的支持用户登录
在 LdapConfig 中添加 Filter 字段,以允许限制哪些 LDAP 用户可以登录并同步。当设置了 Filter 时,它会与现有的搜索过滤器使用 AND 逻辑组合。 Closes opsre#174
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明
models/settings.go的LdapConfig结构体中新增filter字段Login方法:若设置了filter,使用 AND 逻辑将其与用户名搜索条件合并,只有同时满足两个条件的用户才能登录ListUsers方法:若设置了filter,将其与(objectClass=person)合并,限制同步到 W8T 的用户范围配置示例