[ejabberd] In-band registration problems when using xmpp.py library

Vineet Naik naikvin at gmail.com
Mon Apr 30 15:35:43 MSK 2012


Update:

I just noticed that after 1st registration if I wait for a time interval of
around 15 mins, then the 2nd registration works without the need of
restarting ejabberd. Then it doesn't work for another 15 mins and so on..
Any pointers ?

Thanks,
vineet

On Mon, Apr 30, 2012 at 3:39 PM, Vineet Naik <naikvin at gmail.com> wrote:

> Hi,
>
> Sorry, the previous message is incomplete. I submitted it by mistake.
>
>
> First of all sorry if this is more of an xmpppy question than an ejabberd
> one. But looks like the xmpppy lib is not being actively maintained any
> more. So hoping that some one else on this list might have faced a similar
> problem, I am posting this question here.
>
> I am trying to register new users to ejabberd database using the xmpppy
> library. In-band registration is enabled in the ejabberd.cfg file.
>
> When I use this lib to register a user, it works perfectly for the first
> time. But after that I cannot register any more users unless ejabberd is
> restarted.
>
>
> Here is the code I am using
>
> def register(username, password):
>     jid=xmpp.protocol.JID("%s@%s" % (username, DOMAIN)
>     cl=xmpp.Client(jid.getDomain(),debug=[])
>
>     cl.connect()
>
>     reg = xmpp.features.register(cl, jid.getDomain(),
>
>  {'username':jid.getNode(), 'password': password})
>
>     cl.disconnect()
>
>     return reg
>
> Am I missing anything that could cause such behaviour ?
>
> Thanks
>
>
> On Mon, Apr 30, 2012 at 3:35 PM, Vineet Naik <naikvin at gmail.com> wrote:
> >
> > Hi,
> >
> > First of all sorry if this is more of an xmpppy question than an
> ejabberd one. But looks like the xmpppy lib is not being actively
> maintained any more. So hoping that some one else on this list might have
> faced a similar problem, I am posting this question here.
> >
> > I am trying to register new users to ejabberd database using the xmpppy
> library. In-band registration is enabled in the ejabberd.cfg file.
> >
> > When use this lib to register a user, it works perfectly for the first
> time. But after that I cannot register any more users unless ejabberd is
> restarted.
> >
> > Here is the code I am using
> >
> > def register(username, password):
> >     jid=xmpp.protocol.JID("%s@%s" % (username, DOMAIN)
> >     cl=xmpp.Client(jid.getDomain(),debug=[])
> >
> >     cl.connect()
> >
> >     reg = xmpp.features.register(cl, jid.getDomain(),
> > {'username':jid.getNode(),
> >                                                        'password':
> password})
> >
> >     cl.disconnect()
> >
> >     return reg
> >
> > --
> > Vineet Naik
> >
> >
>
>
>
> --
> Vineet Naik
>
>


-- 
Vineet Naik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20120430/0dad61ff/attachment.html>


More information about the ejabberd mailing list