[open-ils-commits] r19245 - branches/rel_2_0/Open-ILS/src/sql/Pg (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Jan 21 10:50:58 EST 2011


Author: dbs
Date: 2011-01-21 10:50:55 -0500 (Fri, 21 Jan 2011)
New Revision: 19245

Modified:
   branches/rel_2_0/Open-ILS/src/sql/Pg/950.data.seed-values.sql
Log:
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;


Modified: branches/rel_2_0/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- branches/rel_2_0/Open-ILS/src/sql/Pg/950.data.seed-values.sql	2011-01-21 15:49:45 UTC (rev 19244)
+++ branches/rel_2_0/Open-ILS/src/sql/Pg/950.data.seed-values.sql	2011-01-21 15:50:55 UTC (rev 19245)
@@ -2152,7 +2152,7 @@
 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');



More information about the open-ils-commits mailing list