[ejabberd] advice on proxy registration

Badlop badlop at gmail.com
Mon Jul 25 23:23:32 MSD 2011


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


More information about the ejabberd mailing list