[JDEV] Question...
Dennis Noordsij
dennis.noordsij at wiral.com
Mon Nov 27 10:35:58 CST 2000
Hi,
I am a little stuck here :-)
I am trying to write a custom xdb auth module in Perl, and have it connect to
jabber via <accept>
My jabber.xml section:
<xdb id="auth.mydomain">
<ns>jabber:iq:auth</ns>
<host/>
<accept>
<ip>127.0.0.1</ip>
<port>2233</ip>
<secret>secret</secret>
</accept>
</xdb>
I then write a small Perl script using Net::Jabber, connect to the Jabber
server using Net::Jabber::Component (which works, jabberd also reports the
connection, and from now on xdb requests are -according to jabberd -D output-
sent to both xdb_file and my auth.mydomain module.
I have registered an xdb callback in my perl script, and I do get an xdb
packet when I expect one (ie when someone logs in), but it is simply <xdb/>
.. no other information.
Is it because I am also still using xdb_file ?
Gotta go now, but looking forward to any suggestions!!
Kind regards,
Dennis
More information about the JDev
mailing list