Using ldapsetpasswd when changing a password may
fail due to required password security standards.
The current error message is vague and provides
no information about the error causing password
change to fail. This fix provides a more clear
error message which informs the user about the
security requirements for a new password.
Test Plan:
PASS: In a simplex system, create a ldap user named
test and then run "sudo ldapsetpasswd test" and
provide a password that fails the security
requirements, such as "linux99", retype the
provided password and the system should present
an error message comprising the system's security
requirements for user passwords.
PASS: Using the same user created in the previous test
plan, run the command "sudo ldapsetpasswd test
<pwd>", changing <pwd> for a bad password, and
the system should present an error message
comprising the system's security requirements
for user passwords.
Closes-Bug: 2008838
Change-Id: Ibe942d87bee402e43c42f33e26276f0e078213cb
Signed-off-by: Alan Bandeira <Alan.PortelaBandeira@windriver.com>