ejabberd - Comments for "IQ request for checking whether user existing or not," https://www.ejabberd.im/node/3348 en Yes, i completely agree with https://www.ejabberd.im/node/3348#comment-53903 <p> Yes, i completely agree with you, and i will try with your suggestion to test with XEP-0133: Service Administration queries. </p> <p>Thank you.</p> <p>BR,<br /> Vijay Kumar G V.</p> Wed, 07 Jan 2009 06:55:38 +0000 gvvijaykumar comment 53903 at https://www.ejabberd.im Probably security concerns. Maybe ad-hoc commands help? https://www.ejabberd.im/node/3348#comment-53901 <div class="quote-msg"> <div class="quote-author"><em>gvvijaykumar</em> wrote:</div> <p>I am trying to send a request to find a user is existing / registered with server through DiscoInfo query.<br /> According to RFC if user (JID) is not registered with server, we will get response with Type="error", error code="404"<br /> "Item-not-found", when i tested with Ejabberd it is giving response type="result" with feature list irrespective of user exists. </p></div> <p>Regardless of what XEP-0030 says, it seems ejabberd does not leak information to untrusted guys about whether an account exists or not. This is a good thing, right? Think, for example, in spam prevention and privacy concerns.</p> <div class="quote-msg"> <div class="quote-author"><em>gvvijaykumar</em> wrote:</div> <p>May i know how to request ejabberd server to find a user is registered or not? </p></div> <p>Let's imagine you only want a certain account (probably a bot) to perform such query.</p> <p>Several ad-hoc commands defined in <noindex><a href="http://xmpp.org/extensions/xep-0133.html" rel="nofollow" >XEP-0133: Service Administration</a></noindex> are implemented in ejabberd. In ejabberd 2.0.0 or newer, enable mod_adhoc and mod_configure, then give access for mod_configure to that trusted account.</p> <p>I see two useful commands:</p> <ul> <li>Query "4.6. Get User Password". If returns some password, then account exists. </li><li>Query "4.9. Get User Last Login Time". If doesn't return "Never", then the account exists. </li></ul> Tue, 06 Jan 2009 18:59:15 +0000 mfoss comment 53901 at https://www.ejabberd.im