feat : 修改LDAP测试登录和同步用户属性

This commit is contained in:
wangzhengkun
2022-06-15 16:10:28 +08:00
parent cc4351a287
commit b3aff25c6b
7 changed files with 62 additions and 57 deletions

View File

@@ -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)