[jdev] tls + plain sasl not working

Adrian Adrian flashbk2003 at yahoo.com
Wed Mar 22 05:05:27 CST 2006


Hello, 
  
  I want to comunicate with and IM server (Wildfire) through TLS on port  5222 using SASL plain text authentication according to RFC 3920 
  
  Basically I start a stream, server shows me the auth mechanisms, I send  startls command, server says proceed, I start a new stream, server  shows me the auth mechanisms, I select PLAIN and the server shuts me  off. 
  
  
  Here's the communication : 
  
  CLIENT : <?xml version="1.0"?><flash:stream to="192.168.11.3"  xmlns="jabber:client" xmlns:flash="http://www.jabber.com/streams/flash"  version="1.0">
  SERVER  <?xml version='1.0'  encoding='UTF-8'?><flash:stream  xmlns:flash="http://www.jabber.com/streams/flash"  xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client"  from="192.168.11.3" id="5bbdf7a3" xml:lang="en"  version="1.0"><stream:features><starttls  xmlns="urn:ietf:params:xml:ns:xmpp-tls"></starttls><mechanisms  xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>CRAM-MD5</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><auth  xmlns="http://jabber.org/features/iq-auth"/><register  xmlns="http://jabber.org/features/iq-register"/></stream:features>  
  CLIENT <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
  SERVER <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/> 
  CLIENT <?xml version="1.0"?><flash:stream to="192.168.11.3"  xmlns="jabber:client" xmlns:flash="http://www.jabber.com/streams/flash"  version="1.0">
  SERVER <?xml version='1.0' encoding='UTF-8'?><flash:stream  xmlns:flash="http://www.jabber.com/streams/flash"  xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client"  from="192.168.11.3" id="e6661ae8" xml:lang="en"  version="1.0"><stream:features><starttls  xmlns="urn:ietf:params:xml:ns:xmpp-tls"></starttls><mechanisms  xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>CRAM-MD5</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><auth  xmlns="http://jabber.org/features/iq-auth"/><register  xmlns="http://jabber.org/features/iq-register"/></stream:features>  
  CLIENT <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'mechanism='PLAIN'/>
  SERVER <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure> 
  
  As you can see, although the server advertises the PLAIN mechanism, it doesn't let me connect to it. Why ? 
  
  Thanks. 
  
  PS here's the wildfire error log : 
  
  
  
  
  
  
		
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20060322/c993413f/attachment-0002.htm>


More information about the JDev mailing list