[jdev] How to add new field in Jabberd2 register ?

Tomasz Sterna tomek at xiaoka.com
Thu Oct 11 01:57:03 CDT 2007

Dnia 11-10-2007, Cz o godzinie 10:16 +0800, James Li pisze:
> <iq xmlns='jabber:client' id='uid1' type='result'>
> <query xmlns='jabber:iq:register'>
> <username/><password/><instructions>Enter a username and password to
> register with this server.</instructions> 
> </query>
> </iq>
> If I want to add new field, such as 'nick' or 'email',How to do it?

First of all, you should be using jabber:x:data forms to extend in-band
registration - jabber:iq:register schema is fixed and not extensible.

Secondly - jabberd 2.1 does not support this. ;-)

But then - the whole in-band registration (jabber:iq:register) is frown
and there is a tendency to recommend out of band (jabber:x:oob)
registration (via a web page, etc.), and this is supported by jabberd as
of 2.1.9.

  /\_./o__ Tomasz Sterna
 (/^/(_^^'  Xiaoka.com
._.(_.)_  XMPP: smoku at xiaoka.com

More information about the JDev mailing list