Update module gopkg.in/ldap.v2 to v3
Some checks reported errors
continuous-integration/drone/pr Build was killed
continuous-integration/drone/push Build is passing

This commit is contained in:
Renovate Bot 2021-08-03 10:12:24 +00:00 committed by Pierre-Olivier Mercier
commit 9a7e8be351
4 changed files with 17 additions and 7 deletions

View file

@ -8,7 +8,7 @@ import (
"fmt"
"github.com/amoghe/go-crypt"
"gopkg.in/ldap.v2"
"github.com/go-ldap/ldap/v3"
)
type LDAP struct {
@ -125,7 +125,7 @@ func (l LDAPConn) ChangePassword(dn string, rawpassword string) error {
return err
}
modify := ldap.NewModifyRequest(dn)
modify := ldap.NewModifyRequest(dn, nil)
modify.Replace("userPassword", []string{"{CRYPT}" + hashedpasswd})
return l.connection.Modify(modify)