Net::XMPP Connection Start

Matt Mankins mankins at media.mit.edu
Mon Oct 2 21:57:03 UTC 2006


Hello.

I am having some trouble with getting the perl module  
Net::XMPP::Client to work with DJabberd.  Has anyone used this combo  
successfully?

Ichat/Adium connect and authenticate just fine, however my Bot  
scripts (which work with jabberd/jabberd2) aren't terribly happy  
getting the connection going.  The behavior seems to be the same if  
we're using SSL or not.

The Bot gives:

<?xml version='1.0'?><stream:stream version='1.0'  
xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client'  
to='server.com' from='client.com' xml:lang='en' >

And DJabberd responds:

<?xml version="1.0" encoding="UTF-8"?><stream:stream  
from='server.com' id="c54a12215b8eb33a836056c09b53759b91430c93"  
version='1.0'  xmlns:stream="http://etherx.jabber.org/streams"  
xmlns="jabber:client"><stream:features><auth xmlns='http://jabber.org/ 
features/iq-auth'/><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls' / 
 ></stream:features>

and then the bot hangs, giving a bunch of these (every few seconds)  
with debugging turned on:

XML::Stream: Send: ( )

The connection is still open, but authentication isn't happening.

For comparison, the jabber.org start stream looks like:

<?xml version='1.0'?><stream:stream xmlns='jabber:client'  
xmlns:stream='http://etherx.jabber.org/streams' id='3995641919'  
from='jabber.org' version='1.0' xml:lang='en'>
<stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp- 
sasl'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></ 
mechanisms><register xmlns='http://jabber.org/features/iq-register'/ 
 ></stream:features>

And it will proceed to the next step, authenticating.

Am I to interpret this as the client not knowing how to do http:// 
jabber.org/features/iq-auth?  Are the auth <mechanisms/> needed for  
this client?

Many thanks in advance.

Matt Mankins
http://www.ka-zam.com/


More information about the Djabberd mailing list