Skip to content

Commit 3f9d792

Browse files
authored
Prevent special chars in generated passwords (#516)
For the Oracle Database 23ai Free project, change the method used by install.sh to auto-generate passwords from openssl rand -base64 to openssl rand -hex. This prevents including special characters in the generated password that would cause database creation to fail. (Also, change the openssl rand "num" parameter from 9 to 8, to be consistent with the other single-instance database projects in this repository.) Fixes #515 Signed-off-by: Paul Neumann <[email protected]>
1 parent 1167ff1 commit 3f9d792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OracleDatabase/23.4.0-Free/scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fi
6565
echo 'INSTALLER: Oracle software installed'
6666

6767
# Auto generate ORACLE PWD if not passed in
68-
export ORACLE_PWD=${ORACLE_PWD:-"$(openssl rand -base64 9)1"}
68+
export ORACLE_PWD=${ORACLE_PWD:-"$(openssl rand -hex 8)1"}
6969

7070
# Create database
7171
cfg_file='/etc/sysconfig/oracle-free-23ai.conf'

0 commit comments

Comments
 (0)