Net::XMPP Connection Start

Matt Mankins mankins at
Mon Oct 2 21:57:03 UTC 2006


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

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='' xmlns='jabber:client'  
to='' from='' xml:lang='en' >

And DJabberd responds:

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

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 start stream looks like:

<?xml version='1.0'?><stream:stream xmlns='jabber:client'  
xmlns:stream='' id='3995641919'  
from='' version='1.0' xml:lang='en'>
<stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp- 
mechanisms><register xmlns=''/ 

And it will proceed to the next step, authenticating.

Am I to interpret this as the client not knowing how to do http://  Are the auth <mechanisms/> needed for  
this client?

Many thanks in advance.

Matt Mankins

More information about the Djabberd mailing list