mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
MySQL Backend Patch for scram-sha512 (#3582)
* Update mysql.new.sql scram-sha512 does not work, because serverkey is longer, then that array. All passwords was unhashed. * Update mysql.sql
This commit is contained in:
parent
d94bae241c
commit
7b33499811
@ -20,8 +20,8 @@ CREATE TABLE users (
|
|||||||
username varchar(191) NOT NULL,
|
username varchar(191) NOT NULL,
|
||||||
server_host varchar(191) NOT NULL,
|
server_host varchar(191) NOT NULL,
|
||||||
password text NOT NULL,
|
password text NOT NULL,
|
||||||
serverkey varchar(64) NOT NULL DEFAULT '',
|
serverkey varchar(128) NOT NULL DEFAULT '',
|
||||||
salt varchar(64) NOT NULL DEFAULT '',
|
salt varchar(128) NOT NULL DEFAULT '',
|
||||||
iterationcount integer NOT NULL DEFAULT 0,
|
iterationcount integer NOT NULL DEFAULT 0,
|
||||||
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
PRIMARY KEY (server_host(191), username)
|
PRIMARY KEY (server_host(191), username)
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
CREATE TABLE users (
|
CREATE TABLE users (
|
||||||
username varchar(191) PRIMARY KEY,
|
username varchar(191) PRIMARY KEY,
|
||||||
password text NOT NULL,
|
password text NOT NULL,
|
||||||
serverkey varchar(64) NOT NULL DEFAULT '',
|
serverkey varchar(128) NOT NULL DEFAULT '',
|
||||||
salt varchar(64) NOT NULL DEFAULT '',
|
salt varchar(128) NOT NULL DEFAULT '',
|
||||||
iterationcount integer NOT NULL DEFAULT 0,
|
iterationcount integer NOT NULL DEFAULT 0,
|
||||||
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
Loading…
Reference in New Issue
Block a user