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 "[EMAIL PROTECTED]" 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
"Registered"

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.

HTH,
-Dov

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: Friday, March 19, 2004 5:59 AM
> To: [EMAIL PROTECTED]
> 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
> [EMAIL PROTECTED]
> 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. 
 
_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
https://jabberstudio.org/mailman/listinfo/jdev

Reply via email to