[ejabberd] Find out if user already exist - ejabberd admin

Gaurav Jain monkeyfdude at gmail.com
Tue May 26 20:20:25 MSK 2015


Thank you for the response. For now, I am relying on parsing the
ejabberdctl output. I am not sure if that could be considered a hack in the
absence of any api to do the same.

Best Regards,
Gaurav Jain

On Tue, May 26, 2015 at 2:21 AM, Holger Weiß <holger at zedat.fu-berlin.de>
wrote:

> * Gaurav Jain <monkeyfdude at gmail.com> [2015-05-23 16:52]:
> > I create users with ejabberd_admin register command. I do not use in-band
> > regsitration.
> >
> > For the same I wanted to find out, if user already exist. I get following
> > error from ejabberd when sent a request thru node.js server.
> >
> > What should I look for in the error message to consistently find out if
> > user already exists?
> >
> > Is there any other API to do the same?
>
> That node.js code seems to run ejabberdctl to call the register command.
> If you want to avoid parsing the ejabberdctl output, you could use the
> XML-RPC interface instead:
>
>         https://www.ejabberd.im/ejabberd_xmlrpc
>
> Holger
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20150526/30f089b2/attachment.html>


More information about the ejabberd mailing list