25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +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:
Nikat 2021-05-20 14:32:50 +03:00 committed by GitHub
parent d94bae241c
commit 7b33499811
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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;