mirror of
https://github.com/1Panel-dev/KubePi.git
synced 2025-10-06 07:47:10 +08:00
feat : 修改LDAP测试登录和同步用户属性
This commit is contained in:
@@ -47,7 +47,7 @@ func (l *Ldap) Connect() error {
|
||||
|
||||
func (l *Ldap) Search(dn, filter string, sizeLimit, timeLimit int, attributes []string) ([]*ldap.Entry, error) {
|
||||
searchRequest := ldap.NewSearchRequest(dn,
|
||||
ldap.ScopeWholeSubtree, ldap.NeverDerefAliases, 0, timeLimit, false,
|
||||
ldap.ScopeWholeSubtree, ldap.DerefAlways, 0, timeLimit, false,
|
||||
filter,
|
||||
attributes,
|
||||
nil)
|
||||
|
Reference in New Issue
Block a user