View | Details | Raw Unified | Return to bug 9885
Collapse All | Expand All

(-)a/debian/scripts/koha-create (-3 / +3 lines)
Lines 192-198 if [ "$op" = create ] || [ "$op" = request ] || [ "$op" = use ] Link Here
192
then
192
then
193
    if [ "$mysqlpwd" = "" ]
193
    if [ "$mysqlpwd" = "" ]
194
    then
194
    then
195
        mysqlpwd="$(pwgen -1)"
195
        mysqlpwd="$(pwgen -s 16 1)"
196
    fi
196
    fi
197
else
197
else
198
    mysqlpwd="$(getinstancemysqlpassword $name)"
198
    mysqlpwd="$(getinstancemysqlpassword $name)"
Lines 220-226 then Link Here
220
    koha-create-dirs "$name"
220
    koha-create-dirs "$name"
221
221
222
    # Generate Zebra database password.
222
    # Generate Zebra database password.
223
    zebrapwd="$(pwgen -s 12 1)"
223
    zebrapwd="$(pwgen -s 16 1)"
224
    # Future enhancement: make this configurable for when your db is on
224
    # Future enhancement: make this configurable for when your db is on
225
    # another server.
225
    # another server.
226
    mysql_hostname="localhost"
226
    mysql_hostname="localhost"
Lines 308-314 then Link Here
308
308
309
309
310
        # Change the default user's password.
310
        # Change the default user's password.
311
        staffpass="$(pwgen -1)"
311
        staffpass="$(pwgen 12 1)"
312
        staffdigest=$(echo -n "$staffpass" |
312
        staffdigest=$(echo -n "$staffpass" |
313
                      perl -e '
313
                      perl -e '
314
                            use Digest::MD5 qw(md5_base64); 
314
                            use Digest::MD5 qw(md5_base64); 
(-)a/debian/scripts/koha-reset-passwd (-2 / +1 lines)
Lines 45-51 eof Link Here
45
45
46
for userid in "$@"
46
for userid in "$@"
47
do
47
do
48
    password="$(pwgen -1)"
48
    password="$(pwgen 12 1)"
49
    digest="$(pwdigest $password)"
49
    digest="$(pwdigest $password)"
50
    echo "$userid $password"
50
    echo "$userid $password"
51
    echo "UPDATE borrowers SET password = '$digest' WHERE userid = '$userid';" \
51
    echo "UPDATE borrowers SET password = '$digest' WHERE userid = '$userid';" \
52
- 

Return to bug 9885