From: dbs Date: Wed, 19 Jan 2011 04:41:15 +0000 (+0000) Subject: Part 2 of creating a more secure default setup X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=516d4fe2266d1fcc09ac17a8877c733e8d911607;p=contrib%2FConifer.git Part 2 of creating a more secure default setup With this commit, the user name and password for the administrative user will be MD5 hashes of a random string of numbers. You can set the user name and password to your liking using the --admin-user and --admin-pass switches for eg_db_config.pl (this will be the documented method in the install docs) or via straight SQL as: UPDATE actor.usr SET usrname = 'FOO', passwd = 'BAR' WHERE id = 1; git-svn-id: svn://svn.open-ils.org/ILS/trunk@19200 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 7fa5a015d3..e99a54b5c1 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -1597,7 +1597,7 @@ INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable) VALUES (7, (SE INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable) VALUES (1, (SELECT id FROM permission.perm_list WHERE code = 'HOLD_ITEM_CHECKED_OUT.override'), 0, false); -- Admin user account -INSERT INTO actor.usr ( profile, card, usrname, passwd, first_given_name, family_name, dob, master_account, super_user, ident_type, ident_value, home_ou ) VALUES ( 1, 1, 'admin', 'open-ils', 'Administrator', 'System Account', '1979-01-22', TRUE, TRUE, 1, 'identification', 1 ); +INSERT INTO actor.usr ( profile, card, usrname, passwd, first_given_name, family_name, dob, master_account, super_user, ident_type, ident_value, home_ou ) VALUES ( 1, 1, md5(random()::text), md5(random()::text), 'Administrator', 'System Account', '1979-01-22', TRUE, TRUE, 1, 'identification', 1 ); -- Admin user barcode INSERT INTO actor.card (usr, barcode) VALUES (1,'101010101010101');