Handle multiple mail values
This commit is contained in:
parent
c28c25496d
commit
767512838b
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ func handleUserMail(w http.ResponseWriter, r *http.Request) {
|
||||||
modifyRequest := ldap.NewModifyRequest(login.Info.DN, nil)
|
modifyRequest := ldap.NewModifyRequest(login.Info.DN, nil)
|
||||||
modifyRequest.Delete("mail", []string{email})
|
modifyRequest.Delete("mail", []string{email})
|
||||||
|
|
||||||
|
log.Printf("handleUserMail %v", modifyRequest)
|
||||||
err = login.conn.Modify(modifyRequest)
|
err = login.conn.Modify(modifyRequest)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, fmt.Sprintf("Error deleting the email: %s", err), http.StatusInternalServerError)
|
http.Error(w, fmt.Sprintf("Error deleting the email: %s", err), http.StatusInternalServerError)
|
||||||
|
|
Loading…
Reference in a new issue