Skip to content
This repository was archived by the owner on Jul 11, 2018. It is now read-only.

Commit fb9fe8b

Browse files
author
Remold Krol
committed
#19 change extra passwords in manage
1 parent d6c5c35 commit fb9fe8b

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

configs/surfconext/manage.ini

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ auth.simplesamlphp.idp.binding = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-R
1212
; Portal database
1313
; Portal stuff is no longer supported in OpenConext
1414
; ToDo: remove dependencies on below credentials
15-
resources.multidb.coin_portal.host = "localhost"
16-
resources.multidb.coin_portal.username = "root"
17-
resources.multidb.coin_portal.password = "c0n3xt"
18-
resources.multidb.coin_portal.dbname = "portal"
15+
;resources.multidb.coin_portal.host = "localhost"
16+
;resources.multidb.coin_portal.username = "xxx"
17+
;resources.multidb.coin_portal.password = "xxx"
18+
;resources.multidb.coin_portal.dbname = "portal"
1919

2020
; Engine database
2121
resources.multidb.engine_block.host = "localhost"

scripts/components/manage.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,15 @@ sed -e "s/_OPENCONEXT_DOMAIN_/$OC_DOMAIN/g" $OC_BASEDIR/configs/surfconext/manag
3535
# Apply credentials to file manage.ini
3636
sed -i "s/__OC__MANAGE_DB_USER__/$OC__MANAGE_DB_USER/g" /etc/surfconext/manage.ini
3737
sed -i "s/__OC__MANAGE_DB_PASS__/$OC__MANAGE_DB_PASS/g" /etc/surfconext/manage.ini
38-
sed -i "s/__OC__ENGINEBLOCK_DB_USER__/$OC__ENGINEBLOCK_DB_USER/g" /etc/surfconext/manage.ini
39-
sed -i "s/__OC__ENGINEBLOCK_DB_PASS__/$OC__ENGINEBLOCK_DB_PASS/g" /etc/surfconext/manage.ini
38+
sed -i "s/__OC__ENGINE_DB_USER__/$OC__ENGINE_DB_USER/g" /etc/surfconext/manage.ini
39+
sed -i "s/__OC__ENGINE_DB_PASS__/$OC__ENGINE_DB_PASS/g" /etc/surfconext/manage.ini
4040
sed -i "s/__OC__SERVICEREGISTRY_DB_USER__/$OC__SERVICEREGISTRY_DB_USER/g" /etc/surfconext/manage.ini
4141
sed -i "s/__OC__SERVICEREGISTRY_DB_PASS__/$OC__SERVICEREGISTRY_DB_PASS/g" /etc/surfconext/manage.ini
4242

43+
44+
# When manage.ini still contains the default root password of the DB, change it to the oc_config value.
45+
sed -i "s~c0n3xt~$OC__ROOT_DB_PASS~g" /etc/surfconext/manage.ini
46+
4347
CRT_NO_HEADERS=`sed '1d;$d' /etc/surfconext/engineblock.crt` &&
4448
echo "auth.simplesamlphp.idp.cert = \"${CRT_NO_HEADERS}\"" >> /etc/surfconext/manage.ini
4549

0 commit comments

Comments
 (0)