ejabberd - Comments for "how to exclude ejabberd_auth_sql from is_user_exists" https://www.ejabberd.im/forum/28900/how-exclude-ejabberdauthsql-isuserexists en But what is this about ? I https://www.ejabberd.im/forum/28900/how-exclude-ejabberdauthsql-isuserexists#comment-67595 <p>But what is this about ? I thought it mentioned to exclude any Module:is_user_exists by passed *SOMETHING* as parameter.</p> <p>ejabberd_auth.erl :<br /> ----------------------------</p> <pre> is_user_exists(User, Server) -&gt; %% Check if the user exists in all authentications module except the module %% passed as parameter %% @spec (Module::atom(), User, Server) -&gt; true | false | maybe lists:any(fun (M) -&gt; case M:is_user_exists(User, Server) of {error, Error} -&gt; ?ERROR_MSG("The authentication module ~p returned " "an error~nwhen checking user ~p in server " "~p~nError message: ~p", [M, User, Server, Error]), false; Else -&gt; Else end end, auth_modules(Server)). </pre> Thu, 20 Jul 2017 10:30:00 +0000 dev23 comment 67595 at https://www.ejabberd.im You cannot do this. The only https://www.ejabberd.im/forum/28900/how-exclude-ejabberdauthsql-isuserexists#comment-67591 <p>You cannot do this. The only way to accomplish this is to merge functions from ejabberd_auth_sql and another ejabberd_auth_* file (from where you want is_user_exists function to be called) into a single file like ejabberd_auth_my and use <code>auth_method: my</code></p> Thu, 20 Jul 2017 07:13:54 +0000 zinid comment 67591 at https://www.ejabberd.im