ISSUE TYPE
Bug/Improvement request
COMPONENT NAME
Component: Improvement, UI,Bug
CLOUDSTACK VERSION
Cloudstack version 4.19.1.x
SUMMARY
Cloudstack shouldn't allow to change a user's password if the user is of saml and ldap from cloudstack
Steps to reproduce the issue
-
Have a cloudstack environment with Ldap and saml enabled
-
Make sure the ldap user and saml users are imported with a user role
-
Navigate to a ldap user /saml user , or login as a ldap/user. there is an option to change the password


Previously Cloudstack didn't allow to change the password of ldap or a small account

Expected behaviour
The update user API call shouldn't allow to change the password for ldap/saml user
https://cloudstack.apache.org/api/apidocs-4.19/apis/updateUser.html
Cloudstack shouldn't allow to change a user's password if the user is of saml and ldap from cloudstack
Cloudstack should throw an exception message to contact the administrator