AMBARI-26061 : Add password validation criteria for ambari local users
What changes were proposed in this pull request?
Add password validation criteria for ambari local users
- Password should not contain the user name
- Password should not be same as previous n passwords
How was this patch tested?
- Installed Ambari
- Validated the password updation for admin user (covered both the password with the username and password matching previous passwords)
- Created another local user and similarly validated for that user
- Added the UTs also
Please review Ambari Contributing Guide before opening a pull request.
@himanshumaurya09876 I don't quite understand this PR. Could you please explain the use case for this feature? It would be great if you could provide some screenshots or similar.
Hi @JiaLiangC This will add password validation criteria for ambari local users
- Password should not contain the user name
- Password should not be same as previous n passwords
If we will use password containing username or password matching previous n passwords (where n is configured in ambari.properties file using security.password.policy.history.count property) then ambari will not allow, like shown in below screenshots
Hi @brahmareddybattula @arshadmohammad @vishalsuvagia @JiaLiangC @virajjasani Kindly review and merger this PR Thank you
Hi @brahmareddybattula @arshadmohammad @vishalsuvagia @JiaLiangC Kindly review and merger this PR Thank you
Sorry for later reply, i will test this feature as soon as possible
Hi @brahmareddybattula @arshadmohammad @vishalsuvagia @JiaLiangC Kindly review and merger this PR Thank you
Sorry for later reply, i will test this feature as soon as possible
Thank you @JiaLiangC
LGTM +1 @virajjasani any more review from your side?
Hi @brahmareddybattula @arshadmohammad @vishalsuvagia @JiaLiangC @virajjasani Kindly review and merger this PR Thank you
@himanshumaurya09876 Sorry, I don't have the permission to merge the code. We'll have to wait for another community member with the necessary permissions to do the merge.
Let me get to it in a couple of days, unless anyone else can merge in the meantime? @arshadmohammad @JiaLiangC
Let me get to it in a couple of days, unless anyone else can merge in the meantime? @arshadmohammad @JiaLiangC
Hi @virajjasani Can we kindly merge this pr?