G Pas
This commit is contained in:
parent
ac5aa4eb7e
commit
c5d4d02f5b
1 changed files with 1 additions and 0 deletions
1
gpas.go
1
gpas.go
|
@ -33,6 +33,7 @@ func passwordLost(user User, config *ConfigFile, ldapConn *ldap.Conn) error {
|
||||||
if user.OtherMailbox == "" {
|
if user.OtherMailbox == "" {
|
||||||
searchFilter += "(carLicense=" + user.OtherMailbox + ")"
|
searchFilter += "(carLicense=" + user.OtherMailbox + ")"
|
||||||
}
|
}
|
||||||
|
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, "(|()()())", []string{"cn", "uid", "mail", "carLicense"}, nil)
|
||||||
searchRes, err := ldapConn.Search(searchReq)
|
searchRes, err := ldapConn.Search(searchReq)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue