[JDEV] How to add JIT Transport using xdb_sql for backend
Ju-Shan Cheng
raicy at wayi.com.tw
Tue Sep 16 01:33:32 CDT 2003
-----Original Message-----
From: jdev-admin at jabber.org [mailto:jdev-admin at jabber.org]On Behalf Of
Ju-Shan Cheng
Sent: Tuesday, September 16, 2003 2:11 PM
To: [JDEV]; [JADMIN]
Subject: [JDEV] How to add JIT Transport using xdb_sql for backend
I change my configuration about xdb_sql and jit again.
But it still doesn't work. ><
The error picture is shown as:
http://tw.img.photo.yahoo.com/raiccy/ab21/p245.jpg =>wrong,
I changed the picture link to:
http://tw.photo.yahoo.com/member/fcgi-bin/view_photo.fcg?ab=ab21&idx=1&id=raiccy&ph_id=p245&.r=948998
The XML denug messgae:
<iq type='result' id='JCOM_16' to='laida at lnx1.abc.com.tw/laida_701' from='icq.lnx1.abc.com.tw'>
<query xmlns='jabber:iq:register'>
<password/>
<key>86f18a655d3c633b89d0cd0b9c51fc090e76ba05</key>
<instructions>Please enter your ICQ UIN and password.
Username : your UIN.
Password : your icq password.
</instructions>
<registered/>
<x type='form' xmlns='jabber:x:data'>
<title>Registration to ICQ by JIT</title>
<instructions>Please enter your ICQ UIN and password.
Username : your UIN.
Password : your icq password.
</instructions>
<field type='text-single' var='username' label='UIN'>
<value/>
</field>
<field type='text-private' var='password' label='Password'>
<value/>
</field>
<field type='hidden' var='key'>
<value>86f18a655d3c633b89d0cd0b9c51fc090e76ba05</value>
</field>
<field type='hidden' var='registered'> ==> I didn't find this when I use xdb_file. Maybe it is something wrong here.
<value/>
</field>
</x>
</query>
</iq>
The main change in jabber.xml is list below.
I add two xdb block in jabber.xml.
<xdb id="xdb_jab">
<host>lnx1.abc.com.tw</host>
<ns>jabber:iq:roster</ns>
<ns>jabber:x:offline</ns>
<ns>jabber:iq:filter</ns>
<ns>jabber:iq:last</ns>
<ns>jabber:iq:auth</ns>
<ns>jabber:iq:auth:0k</ns>
<ns>jabber:iq:register</ns>
<ns>vcard-temp</ns>
<load>
<xdb_sql>./xdb_sql/xdb_sql.so</xdb_sql>
</load>
<jabberd:include>./xdb_sql/xdb_sql.xml</jabberd:include>
</xdb>
<xdb id="xdb_icq">
<host>icq.lnx1.abc.com.tw</host>
<ns>jabber:iq:roster</ns>
<ns>jabber:x:offline</ns>
<ns>jabber:iq:filter</ns>
<ns>jabber:iq:last</ns>
<ns>jabber:iq:auth</ns>
<ns>jabber:iq:auth:0k</ns>
<ns>jabber:iq:register</ns>
<ns>vcard-temp</ns>
<load>
<xdb_sql>./xdb_sql/xdb_sql.so</xdb_sql>
</load>
<jabberd:include>./xdb_sql/xdb_sql.xml</jabberd:include>
</xdb>
In my xdb_sql.xml:
<connection>
<host>lnx1.abc.com.tw</host>
<host>icq.lnx1.abc.com.tw</host>
<port>3306</port>
<db>jabber</db>
<user>jabber</user>
<pass>secret</pass>
</connection>
I don't know what wrong is in my configuration.
Any pointer will be helpful.
_______________________________________________
jdev mailing list
jdev at jabber.org
http://mailman.jabber.org/listinfo/jdev
More information about the JDev
mailing list