This is an automated email from the ASF dual-hosted git repository.
bpatel pushed a commit to branch ranger-2.3
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/ranger-2.3 by this push:
new b0e7ded RANGER-3624: Update Ranger services Password Policy
b0e7ded is described below
commit b0e7ded902b68bc1210098edcd8c367f230290f7
Author: Bhavik Patel <[email protected]>
AuthorDate: Tue Feb 15 12:55:58 2022 +0530
RANGER-3624: Update Ranger services Password Policy
---
security-admin/scripts/setup.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/security-admin/scripts/setup.sh b/security-admin/scripts/setup.sh
index 4fbbde5..d6cb561 100755
--- a/security-admin/scripts/setup.sh
+++ b/security-admin/scripts/setup.sh
@@ -1576,9 +1576,9 @@ validateDefaultUsersPassword(){
then
log "[E] validatePassword(). Password for ${1} user cannot be
blank"
exit 1
- elif ! [[ ${#2} -ge 8 && "$2" =~ [A-Za-z] && "$2" =~ [0-9] ]] || [[
"${2}" =~ [\"\`\\"'"] ]]
+ elif ! [[ ${#2} -ge 8 && "$2" =~ [A-Z] && "$2" =~ [a-z] && "$2" =~
[0-9] ]] || [[ "${2}" =~ [\"\`\\"'"] ]]
then
- log "[E] validatePassword(). ${1} password change failed.
Password should be minimum 8 characters with minimum one alphabet and one
numeric. Unsupported special characters are \\\`'\""
+ log "[E] validatePassword(). ${1} password change failed.
Password should be minimum 8 characters, at least one uppercase letter, one
lowercase letter and one numeric. Unsupported special characters are \\\`'\""
exit 1
fi
}