免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2154 | 回复: 3
打印 上一主题 下一主题

Jabberd2服务器管理问题:如何新增注册字段 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-10-11 09:35 |只看该作者 |倒序浏览
我使用Jabberd2的服务器,时间很短,不过,一直在困扰我的问题是——
  当我注册Jabber用户的时候,服务器只返回username/password两个字段给我,我也就只能为这两个字段赋值。
在很多时候,这根本不能适应客户的需求的,比如,我可能需要在用户注册的时候,除了username和password两个字段外,还需要填写email和nickname这两个字段,但是,在Jabberd2的配置文件里,找不到在哪里可以修改。。。
——请问,有谁知道如何修改的?请不吝指教,谢谢!

[ 本帖最后由 成天不吃饭 于 2007-10-11 09:37 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2007-10-11 13:13 |只看该作者
这个问题,我在GOOGLE上搜索了很久了,至今也没有合适的解决方案,在Jabberd 1.4中,很简单,在Jabber.xml文件中增加或修改即可了,内容如下:
<register notify='yes'>
<username/>
<password/>
<nick/>
<email/>
</register>

欢迎有此问题或者已经解决的兄弟姐妹们,来此讨论一下吧,这个问题太腻歪人了。 :)

论坛徽章:
0
3 [报告]
发表于 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

论坛徽章:
0
4 [报告]
发表于 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP