summaryrefslogtreecommitdiff
path: root/views.go
diff options
context:
space:
mode:
Diffstat (limited to 'views.go')
-rw-r--r--views.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/views.go b/views.go
index 1f63036..70b84c6 100644
--- a/views.go
+++ b/views.go
@@ -90,6 +90,15 @@ func (v *views) ChangePassword(what string) http.Handler {
}
log.Println("AUDIT", "Changed", what, "password for", username)
+ if strings.ToUpper(what) == "SSO" {
+ // We need to make sure ldap password is set to sasl as well
+ err = pwman.LdapInfo.SetSASLPassword(username)
+ if err != nil {
+ redirectSameFlash(w, req, err.Error(), "error")
+ return
+ }
+ }
+
redirectSameFlash(w, req, fmt.Sprintf("Password %s successfully updated", what), "success")
}
})