Chinaunix

标题: Jabberd2服务器管理问题:如何新增注册字段 [打印本页]

作者: 成天不吃饭    时间: 2007-10-11 09:35
标题: Jabberd2服务器管理问题:如何新增注册字段
我使用Jabberd2的服务器,时间很短,不过,一直在困扰我的问题是——
  当我注册Jabber用户的时候,服务器只返回username/password两个字段给我,我也就只能为这两个字段赋值。
在很多时候,这根本不能适应客户的需求的,比如,我可能需要在用户注册的时候,除了username和password两个字段外,还需要填写email和nickname这两个字段,但是,在Jabberd2的配置文件里,找不到在哪里可以修改。。。
——请问,有谁知道如何修改的?请不吝指教,谢谢!

[ 本帖最后由 成天不吃饭 于 2007-10-11 09:37 编辑 ]
作者: 成天不吃饭    时间: 2007-10-11 13:13
这个问题,我在GOOGLE上搜索了很久了,至今也没有合适的解决方案,在Jabberd 1.4中,很简单,在Jabber.xml文件中增加或修改即可了,内容如下:
<register notify='yes'>
<username/>
<password/>
<nick/>
<email/>
</register>

欢迎有此问题或者已经解决的兄弟姐妹们,来此讨论一下吧,这个问题太腻歪人了。 :)
作者: 成天不吃饭    时间: 2007-10-11 16:18
Hi All,
I has using Jabberd2 server,the version detail is jabberd 2.1.7,
when I try to register new user, the server response required fields, example:

Client->Server(Query):
<iq id='uid1' type='get'>
<query xmlns='jabber:iq:register'/>
</iq>

Server->Client(RESPONSE):
<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?
Thanks everybody...

News group response message:

First of all, you should be using jabber: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 (jabberb)
registration (via a web page, etc.), and this is supported by jabberd as
of 2.1.9.


--
/\_./o__ Tomasz Sterna
(/^/(_^^'  Xiaoka.com
._.(_.)_  XMPP: smoku@xiaoka.com
作者: 成天不吃饭    时间: 2007-10-11 16:46
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@xiaoka.com




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2