ejabberd - Comments for "Use cache for authentication" https://www.ejabberd.im/forum/29187/use-cache-authentication en Hello, how to show cache data https://www.ejabberd.im/forum/29187/use-cache-authentication#comment-67667 <p>Hello, how to show cache data in mod_last and mod_privacy?<br /> thanks.</p> Sat, 23 Sep 2017 14:45:59 +0000 taranis comment 67667 at https://www.ejabberd.im thank you, when I enable https://www.ejabberd.im/forum/29187/use-cache-authentication#comment-67666 <p>thank you,<br /> when I enable option auth_use_cache,</p> <div class="codeblock"><code>auth_method: sql<br />auth_use_cache: true</code></div> <p>user1 does'nt exist in mysql , and try to login :</p> <div class="codeblock"><code> [info] &lt;0.1443.0&gt;@ejabberd_c2s:handle_auth_failure:446 (tls|&lt;0.1442.0&gt;) Failed c2s SCRAM-SHA-1 authentication for <noindex><a href="mailto:user1@jabber.com" rel="nofollow" >user1@jabber.com</a></noindex> from ::FFFF:192.168.90.23: Invalid username or password</code></div> <p>I insert user1 to mysql and don't register from ejabberd and again failed authentiation, It needs clear cache using clear_cache or I have to register from ejabberd.<br /> Is it bug? If users don't exist in mysql and try to connect(fail authentication), then insert to mysql but still failed authentication, I have to clear cache to connect and success authentication. if user exist in mysql and user users wrong password not happend.</p> Sat, 23 Sep 2017 11:35:30 +0000 nets comment 67666 at https://www.ejabberd.im Reading the documentation, it https://www.ejabberd.im/forum/29187/use-cache-authentication#comment-67664 <p>Reading the documentation, it appears you can enable the option auth_use_cache which is mentioned only here: <a href="https://docs.ejabberd.im/admin/configuration/#external-script" title="https://docs.ejabberd.im/admin/configuration/#external-script">https://docs.ejabberd.im/admin/configuration/#external-script</a></p> <p>And then use the options mentioned here: <a href="https://docs.ejabberd.im/admin/configuration/#caching" title="https://docs.ejabberd.im/admin/configuration/#caching">https://docs.ejabberd.im/admin/configuration/#caching</a></p> <p>If you try, please comment what you see in your experiments!</p> Thu, 21 Sep 2017 14:38:36 +0000 badlop comment 67664 at https://www.ejabberd.im