G Pas
This commit is contained in:
parent
ac3b87a701
commit
4f6ed7f47a
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, "(|()()())", []string{"cn", "uid", "mail", "carLicense"}, nil)
|
searchReq := ldap.NewSearchRequest(config.UserBaseDN, ldap.ScopeBaseObject, 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