[ejabberd] advice on proxy registration

Keith Irwin keith.irwin at gmail.com
Mon Jul 25 23:47:08 MSD 2011


Badlop--

Thanks! I was about to go down that sort of route, but not being an ejabberd expert, you've saved me a lot of time.

Regards,

Keith

On Jul 25, 2011, at 12:23 PM, Badlop wrote:

> 2011/7/25 Keith Irwin <keith.irwin at gmail.com>:
>> My web app starts up a client to ejabberd, logs in as a specific user
>> (which I plan to add to the mod_register access list),
>> then attempts to register the new user. This fails with a forbidden (403).
> 
> Configure like:
> {acl, registrant, {user, "user1", "localhost"}}.
> {access, registrants, [{allow, registrant}, {deny, all}]}.
> {modules, [
>  {mod_register, [
>                  {access_from, registrants},
>                  {access, register}
>                 ]},
>  ...
> ]}.
> 
> Client session user1 at localhost/tka1 sends:
> <iq id='40:659201'
> 	type='set'
> 	to='localhost'>
>  <query xmlns='jabber:iq:register'>
>    <username>user11231231234</username>
>    <password>123123</password>
>    <registered/>
>  </query>
> </iq>
> 
> And receives:
> <iq from='localhost'
> 	to='user1 at localhost/tka1'
> 	id='40:659201'
> 	type='result'>
>  <query xmlns='jabber:iq:register'>
>    <username>user11231231234</username>
>    <password>123123</password>
>    <registered/>
>  </query>
> </iq>
> 
> 
> ---
> Badlop
> ProcessOne
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd



More information about the ejabberd mailing list