G Pas
This commit is contained in:
parent
9987129f3f
commit
b6bcb80f0c
1 changed files with 1 additions and 1 deletions
2
gpas.go
2
gpas.go
|
@ -34,7 +34,7 @@ func passwordLost(user User, config *ConfigFile, ldapConn *ldap.Conn) error {
|
||||||
searchFilter += "(carLicense=" + user.OtherMailbox + ")"
|
searchFilter += "(carLicense=" + user.OtherMailbox + ")"
|
||||||
}
|
}
|
||||||
searchFilter += ")"
|
searchFilter += ")"
|
||||||
searchReq := ldap.NewSearchRequest(config.UserBaseDN, ldap.ScopeBaseObject, ldap.NeverDerefAliases, 0, 0, false, searchFilter, []string{"cn", "uid", "mail", "carLicense"}, nil)
|
searchReq := ldap.NewSearchRequest(config.UserBaseDN, ldap.ScopeSingleLevel, ldap.NeverDerefAliases, 0, 0, false, searchFilter, []string{"cn", "uid", "mail", "carLicense"}, nil)
|
||||||
searchRes, err := ldapConn.Search(searchReq)
|
searchRes, err := ldapConn.Search(searchReq)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf(fmt.Sprintf("passwordLost : %v %v", err, ldapConn))
|
log.Printf(fmt.Sprintf("passwordLost : %v %v", err, ldapConn))
|
||||||
|
|
Loading…
Reference in a new issue