mrlitany / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

Libjingle5.1 Authorization error #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi i am  trying to connect Libjingle 5.1 to some different XMPP server(other 
than google).
But i get the following error as stated in the logs.Wheras i am able to connect 
to that server using Smack.
Is there different type of TLS or SASL negotiation performed by libjingle which 
is not complianed with XMPP??From the logs it looks like it not trying for the 
TLS negotiation.

Logs::

WSAAsync:connect (79 ms)
SChannelAdapter::OnConnectEvent
XmppLoginTask::Advance - No error
XmppLoginTask::Advance - LOGINSTATE_STREAMSTART_SENT
SEND >>>>>>>>>>>>>>>> : Fri Nov 12 19:04:02 2010
   <stream:stream to="example.com" xml:lang="*" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
RECV <<<<<<<<<<<<<<<< : Fri Nov 12 19:04:02 2010
   <?xml version='1.0'?>
     <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='05eb6321-702f-41b6-9481-86de8de90d22' from='example.com' version='1.0' xml:lang='en'>
       <stream:features>
         <auth xmlns='http://jabber.org/features/iq-auth'/>
         <mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
           <mechanism>
             SCRAM-SHA-1
           </mechanism>
           <mechanism>
             DIGEST-MD5
           </mechanism>
         </mechanisms>
       </stream:features>
XmppLoginTask::Advance - LOGINSTATE_STREAMSTART_SENT
XmppLoginTask::Advance - LOGINSTATE_STARTED_XMPP
XmppLoginTask::Advance - LOGINSTATE_AUTH_INIT

Original issue reported on code.google.com by satya.bh...@gmail.com on 12 Nov 2010 at 1:39

GoogleCodeExporter commented 9 years ago
I forgot to mention the error
after this it states : (call)
logging in...
(call)
logged out...Authentication could not be negotiated

Original comment by satya.bh...@gmail.com on 12 Nov 2010 at 1:42

GoogleCodeExporter commented 9 years ago
I think its a SASL error..may ber the server doesn't support SASL.How can i 
disable SASL in libjingle?

Original comment by satya.bh...@gmail.com on 15 Nov 2010 at 8:52

GoogleCodeExporter commented 9 years ago

Original comment by jun...@google.com on 15 Jan 2011 at 6:59

GoogleCodeExporter commented 9 years ago
Please try setting the following flag to "true" to disable the TLS.

DEFINE_bool(plainserver, false, "Turn off tls and allow plain password.");

Original comment by jun...@google.com on 7 Jun 2011 at 9:31

GoogleCodeExporter commented 9 years ago
I'm trying to connect LibJingle to the Facebook chat API and running into the 
same problem. I have been able to connect with Facebook using other XMPP 
clients. I have tried with every combination of flags imaginable. 

Here are the logs:

talk_base::Win32Socket::Connect: async dns lookup (chat.facebook.com)
talk_base::Win32Socket::OnDnsNotify: (66.220.151.99, 0)
WSAAsync:connect (370 ms)
SChannelAdapter::OnConnectEvent
XmppLoginTask::Advance - No error
XmppLoginTask::Advance - LOGINSTATE_STREAMSTART_SENT
SEND >>>>>>>>>>>>>>>> : Sat Mar 09 18:54:25 2013
   <stream:stream to="chat.facebook.com" xml:lang="*" version="1.0" xmlns:stream
="http://etherx.jabber.org/streams" xmlns="jabber:client">
logging in...
RECV <<<<<<<<<<<<<<<< : Sat Mar 09 18:54:25 2013
   <?xml version="1.0"?>
     <stream:stream id="D44910D0" from="chat.facebook.com" version="1.0" xmlns="
jabber:client" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en">
XmppLoginTask::Advance - LOGINSTATE_STREAMSTART_SENT
RECV <<<<<<<<<<<<<<<< : Sat Mar 09 18:54:25 2013
   <stream:features>
     <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
     <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
       <mechanism>
         X-FACEBOOK-PLATFORM
       </mechanism>
       <mechanism>
         DIGEST-MD5
       </mechanism>
     </mechanisms>
   </stream:features>
XmppLoginTask::Advance - LOGINSTATE_STARTED_XMPP
XmppLoginTask::Advance - LOGINSTATE_TLS_INIT
XmppLoginTask::Advance - LOGINSTATE_TLS_REQUESTED
SEND >>>>>>>>>>>>>>>> : Sat Mar 09 18:54:25 2013

   <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
RECV <<<<<<<<<<<<<<<< : Sat Mar 09 18:54:26 2013
   <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
XmppLoginTask::Advance - LOGINSTATE_TLS_REQUESTED
BeginSSL: chat.facebook.com
SChannel cipher strength: 40 - 256
SChannel supported algorithms:
  Unknown (26126)
  Unknown (26128)
  rc4 (26625)
  3des (26115)
  des (26113)
  md5 (32771)
  sha1 (32772)
  Unknown (32780)
  Unknown (32781)
  Unknown (32782)
  RSA (9216)
  ESDH (43522)
  Unknown (44550)
  DSA (8704)
  Unknown (8707)
XmppLoginTask::Advance - No error
XmppLoginTask::Advance - LOGINSTATE_STREAMSTART_SENT
SEND >>>>>>>>>>>>>>>> : Sat Mar 09 18:54:26 2013
   <stream:stream to="chat.facebook.com" xml:lang="*" version="1.0" xmlns:stream
="http://etherx.jabber.org/streams" xmlns="jabber:client">
ContinueSSL
ContinueSSL
ContinueSSL
ContinueSSL
ContinueSSL
QueryContextAttributes
RECV <<<<<<<<<<<<<<<< : Sat Mar 09 18:54:27 2013
   <?xml version="1.0"?>
     <stream:stream id="42095D8F" from="chat.facebook.com" version="1.0" xmlns="
jabber:client" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en">
XmppLoginTask::Advance - LOGINSTATE_STREAMSTART_SENT
RECV <<<<<<<<<<<<<<<< : Sat Mar 09 18:54:27 2013
   <stream:features>
     <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
       <mechanism>
         X-FACEBOOK-PLATFORM
       </mechanism>
       <mechanism>
         DIGEST-MD5
       </mechanism>
     </mechanisms>
   </stream:features>
XmppLoginTask::Advance - LOGINSTATE_STARTED_XMPP
XmppLoginTask::Advance - LOGINSTATE_AUTH_INIT
logged out... Authentication could not be negotiated

Original comment by JasonBog...@gmail.com on 10 Mar 2013 at 12:03