Update module gopkg.in/ldap.v2 to v3

This commit is contained in:
Renovate Bot
2021-08-03 10:12:24 +00:00
committed by Pierre-Olivier Mercier
parent e9019026ff
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)