ejabberd - Comments for "SCRAM authentication" https://www.ejabberd.im/forum/25329/scram-authentication en When I enabled auth_method: https://www.ejabberd.im/forum/25329/scram-authentication#comment-66521 <p>When I enabled</p> <pre> auth_method: odbc auth_password_format: scram </pre><p>and tried to register a new account, this error was logged:</p> <pre> 10:51:40.394 [info] ({socket_state,gen_tcp,#Port&lt;0.21900&gt;,&lt;0.530.0&gt;}) Failed legacy authentication for user111222@localhost/tka1vim xm from 127.0.0.1 10:51:41.641 [error] SQL query 'insert into users(username, password, serverkey, salt, iterationcount) values ('user111222', 'kBsYMj45T+kJcjtm7F219L3IYqE=', '3CZ6WCAMKCbfWeAw2Mp8/odv/Wc=', '2DbkjnwI5SIjIS+2nEGEBA==', '4096');' failed: "#42S22Unknown column 'serverkey' in 'field list'" </pre><p> Looking at sql/mysql.sql, I found comments that pointed to the solution. I executed those queries in the MySQL database:</p> <pre> ALTER TABLE users ADD COLUMN serverkey text NOT NULL DEFAULT ''; ALTER TABLE users ADD COLUMN salt text NOT NULL DEFAULT ''; ALTER TABLE users ADD COLUMN iterationcount integer NOT NULL DEFAULT 0; </pre><p> After that, new account registrations in ODBC were stored as SCRAM, not plain.</p> Wed, 20 Jan 2016 10:05:06 +0000 badlop comment 66521 at https://www.ejabberd.im