commit 96d6f948a9259740e29ed47c6ab30976f182b133
Author: Alan Bandeira <email address hidden>
Date: Wed Mar 1 00:16:22 2023 -0300
Update error message for ldapsetpasswd
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 <email address hidden>
Reviewed: https:/ /review. opendev. org/c/starlingx /integ/ +/875798 /opendev. org/starlingx/ integ/commit/ 96d6f948a925974 0e29ed47c6ab309 76f182b133
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 96d6f948a925974 0e29ed47c6ab309 76f182b133
Author: Alan Bandeira <email address hidden>
Date: Wed Mar 1 00:16:22 2023 -0300
Update error message for ldapsetpasswd
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:
requirements , such as "linux99", retype the
requirements for user passwords.
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
provided password and the system should present
an error message comprising the system's security
PASS: Using the same user created in the previous test
comprising the system's security requirements
plan, run the command "sudo ldapsetpasswd test
<pwd>", changing <pwd> for a bad password, and
the system should present an error message
for user passwords.
Closes-Bug: 2008838 e43c42f33e26276 f0e078213cb
Change-Id: Ibe942d87bee402
Signed-off-by: Alan Bandeira <email address hidden>