File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
image/service/phpldapadmin Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 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/*********************************************
3939
4040
4141
42-
43-
4442/*********************************************
4543 * User-friendly attribute translation *
4644 *********************************************/
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments