This is an automated email from the ASF dual-hosted git repository.

bpatel pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/master by this push:
     new 30486a0  RANGER-3624: Update Ranger services Password Policy
30486a0 is described below

commit 30486a024aa7be8707ba1050e5ebff6d866c9ba9
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 583b270..6b001cf 100755
--- a/security-admin/scripts/setup.sh
+++ b/security-admin/scripts/setup.sh
@@ -1605,9 +1605,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
 }

Reply via email to