decoupling Jenkins and LDAP

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2021-03-29 16:11:33 +08:00
parent ac275b6e98
commit 3e8597cf76
11 changed files with 674 additions and 163 deletions

View File

@@ -171,8 +171,6 @@ func (l *ldapInterfaceImpl) newConn() (ldap.Client, error) {
if err != nil {
return nil, err
}
defer conn.Close()
err = conn.Bind(l.managerDN, l.managerPassword)
if err != nil {
return nil, err