Ticket #269: Changed password hash column to binary(32) and added a database script to create a default admin user

This commit is contained in:
James Muehlner
2013-02-12 11:41:36 -08:00
parent e9396999a4
commit f831287747
38 changed files with 588 additions and 650 deletions

View File

@@ -0,0 +1,4 @@
insert into guacamole_user values(1, 'guacadmin', x'AE97B20D5B24B2F18BE7921E3C0CF6109696391D7D5A6BE24BD267E49F0D7E42', x'FE24ADC5E11E2B25288D1704ABE67A79E342ECC26064CE69C5B3177795A82264');
insert into guacamole_system_permission values(1, 'CREATE_CONFIGURATION');
insert into guacamole_system_permission values(1, 'CREATE_USER');

View File

@@ -18,7 +18,7 @@ CREATE TABLE `guacamole_user` (
`user_id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(128) NOT NULL,
`password_hash` binary(32) NOT NULL,
`password_salt` varchar(100) NOT NULL,
`password_salt` binary(32) NOT NULL,
PRIMARY KEY (`user_id`),
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;