Skip to content

Commit 010e118

Browse files
committed
-
1 parent 27fbdb3 commit 010e118

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

image/service/phpldapadmin/assets/config.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/*
2929
* Autogenerated value will be automatically added by phpldapadmin/container-start.sh
3030
*/
31-
$config->custom->session['blowfish'] = '';
31+
$config->custom->session['blowfish'] = '{{ PHPMYADMIN_CONFIG_BLOWFISH }}';
3232

3333

3434
/*********************************************
@@ -39,8 +39,6 @@
3939

4040

4141

42-
43-
4442
/*********************************************
4543
* User-friendly attribute translation *
4644
*********************************************/

image/service/phpldapadmin/container-start.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ if [ ! -e "$FIRST_START_DONE" ]; then
2828
rm -rf /var/www/phpldapadmin_bootstrap
2929

3030
get_salt() {
31-
salt=$(</dev/urandom tr -dc '1324567890#<>,()*.^@$% =-_~;:|{}[]+!`azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN' | head -c64 | tr -d '\\')
31+
salt=$(</dev/urandom tr -dc '1324567890#<>,()*.^@$% =-_~;:/{}[]+!`azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN' | head -c64 | tr -d '\\')
3232
}
3333

3434
# phpLDAPadmin cookie secret
3535
get_salt
36-
sed -i "s/blowfish'] = '/blowfish'] = '${salt}/g" /var/www/phpldapadmin/config/config.php
36+
sed -i "s|{{ PHPMYADMIN_CONFIG_BLOWFISH }}|${salt}|g" /var/www/phpldapadmin/config/config.php
3737

3838
print_by_php_type() {
3939

0 commit comments

Comments
 (0)