ejabberd - Comments for "Both ODBC(MySQL) and anonymous authentication " https://www.ejabberd.im/forum/25301/both-odbcmysql-and-anonymous-authentication en You are right. I've https://www.ejabberd.im/forum/25301/both-odbcmysql-and-anonymous-authentication#comment-66483 <p>You are right. I've investigated a little further the problem, and reported it here:<br /> <noindex><a href="https://github.com/processone/ejabberd/issues/886" title="https://github.com/processone/ejabberd/issues/886" rel="nofollow" >https://github.com/processone/ejabberd/issues/886</a></noindex></p> <p>For now, the only solution is to copy an old ejabberd_config.erl to new ejabberd, like this:<br /> <noindex><a href="https://raw.githubusercontent.com/processone/ejabberd/76104cd117126a2ac8b20b2ddcce4ec6ff12004a/src/ejabberd_config.erl" title="https://raw.githubusercontent.com/processone/ejabberd/76104cd117126a2ac8b20b2ddcce4ec6ff12004a/src/ejabberd_config.erl" rel="nofollow" >https://raw.githubusercontent.com/processone/ejabberd/76104cd117126a2ac8...</a></noindex></p> <p>In case you wonder, the correct config is (4), or more simply:</p> <pre> auth_method: - odbc - anonymous anonymous_protocol: both allow_multiple_connections: true </pre> Mon, 28 Dec 2015 20:47:34 +0000 badlop comment 66483 at https://www.ejabberd.im I also tested with following https://www.ejabberd.im/forum/25301/both-odbcmysql-and-anonymous-authentication#comment-66477 <p>I also tested with following ejabbed versions: 15.04, .06, .07, .09, .10, .11.<br /> .04 and .06 are OK for both login (odbc:mysql and anonymous), but .07, .09, .10, .11 are only anonymous login available.</p> Sat, 26 Dec 2015 14:51:47 +0000 jpro comment 66477 at https://www.ejabberd.im Then I tested several https://www.ejabberd.im/forum/25301/both-odbcmysql-and-anonymous-authentication#comment-66476 <p>Then I tested several settings with several versions of ejabberd.<br /> With ejabberd15.04, I succeeded login both users in mysql db and anonymous users with following setting in ejabbed.yml:<br /> ---------------------------------------<br /> auth_method: odbc</p> <p>host_config:<br /> "mydomain.example.com":<br /> auth_method:<br /> - odbc<br /> - anonymous<br /> anonymous_protocol: both<br /> allow_multiple_connections: true<br /> ---------------------------------------</p> <p>However, for ejabberd15.11 with same setting, I could not succeeded login with users in mysql db. (anonymous login was succeeded.)</p> <p>I am very happy if someone can advise me.</p> Sat, 26 Dec 2015 14:00:46 +0000 jpro comment 66476 at https://www.ejabberd.im