[jdev] Component for registering users

Katz, Dov B (IT) Dov.Katz at morganstanley.com
Fri Mar 19 06:36:09 CST 2004

I've been able to do it in a custom auth module I wrote in java... It
will create accounts on the fly for any successfully auth'd user , if
they don't have one... 

Once I have a gateway connected to the jabberserver as
"gateway.myserver.com" I do this:

When I receive a route type="auth" with an iq "set" in it, I do the
necessary checks, and route back an error if it fails.

If it succeeds, I send xdb "set" to "user at server.com" from
"myserver.com" with the xdbns "jabber:iq:auth", and
<username>user</username> in it.

Then I send back a xdb set to the same to/from pair with <query
xmlns='jabber:iq:auth'><resource>user's resource</resourc>  with
jabber:x:delay in there of the current time, with the content

After doing that, I route an auth "result" IQ packet back to the user.

It works fine for me, and there hasn't been an error since going live
with almost 1000 new user registrations.


> -----Original Message-----
> From: jdev-bounces at jabber.org 
> [mailto:jdev-bounces at jabber.org] On Behalf Of wode at winuel.com.pl
> Sent: Friday, March 19, 2004 5:59 AM
> To: jdev at jabber.org
> Subject: [jdev] Component for registering users
> Hi
> Is it possible to write component that registers users?
> I'd like to disable registering by users themselves.
> Administrator could then send <message/> or <iq/> packet to 
> component JID with some registration request.
> Can the component do registration job sending some packets to 
> jsm, xdb or etc.?
> Wojtek
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> https://jabberstudio.org/mailman/listinfo/jdev
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive confidentiality or privilege, and use is prohibited. 

More information about the JDev mailing list