List Info

Thread: Issue in SASL authenticate after sending bind response.




Issue in SASL authenticate after sending bind response.
user name
2007-11-29 23:24:01

Hi

I am attaching the logs that I get when tryin to use sasl and login to gtalk.
The send and receive of requests and responses seems fine till the bind request for sasl.
I am sending the bind reply to the servers Bind ( <Stream:features&gt; <Bind....><Session>....) request.
After that I am not getting any response from the server. I don’t get any callback to the socket_in_event() method in LM.

Nor do I get any call to the bind handler that is registered.

Is there something amiss?

A neater version of the sent/received logs is pasted below. Else see the attachment to know the function calls.

Regards
Prima Dona


/*************************/
SEND:
-----------------------------------
<?xml version='1.0' encoding='UTF-8'?>
-----------------------------------
inside connection_send: number of bytes written using
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  lm_socket_do_write is : 38
Sending stream header

SEND:
-----------------------------------
<stream:stream version=&quot;1.0&quot; xmlns=&quot;jabber:client" xmlns:stream="http://etherx.jabber.org/streams" to="gmail.com&quot; id="791813794375">

-----------------------------------

RECV [176]:
-----------------------------------
'<?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&lt;stream:stream from=";gmail.com&quot; id="547EB86196A84DCC" version=&quot;1.0&quot; xmlns:stream="http://etherx.jabber.org/streams" xmlns=&quot;jabber:client"&gt;'

-----------------------------------

RECV [166]:
-----------------------------------
'<stream:features&gt;<mechanisms xmlns=&quot;urn:ietf:paramsml:nsmpp-sasl&quot;><;mechanism&gt;PLAIN<;/mechanism><mechanism>X-GOOGLE-TOKEN</mechanism>&lt;/mechanisms></stream:features>'

-----------------------------------

SEND:
-----------------------------------
<auth mechanism="PLAIN" xmlns=&quot;urn:ietf:paramsml:nsmpp-sasl&quot; ga:client-uses-full-bind-result="true&quot; xmlns:ga=&quot;http://www.google.com/talk/protocol/auth&quot; id="71057235000&quot;>AHRlc3RsbTEyMwB0c3RsbTEyMw==</auth>


RECV [51]:
-----------------------------------
'<success xmlns=&quot;urn:ietf:paramsml:nsmpp-sasl&quot;/>'
-----------------------------------


SEND:
-----------------------------------
<stream:stream version=&quot;1.0&quot; xmlns=&quot;jabber:client" xmlns:stream="http://etherx.jabber.org/streams" to="gmail.com&quot; id="546178554375">

-----------------------------------


RECV [176]:
-----------------------------------
'<?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&lt;stream:stream from=";gmail.com&quot; id="D070C1E18361CC32" version=&quot;1.0&quot; xmlns:stream="http://etherx.jabber.org/streams" xmlns=&quot;jabber:client"&gt;'

-----------------------------------

RECV [137]:
-----------------------------------
'<stream:features&gt;<bind xmlns=&quot;urn:ietf:paramsml:nsmpp-bind&quot;/>&lt;session xmlns=&quot;urn:ietf:paramsml:nsmpp-session"/>;</stream:features&gt;'

-----------------------------------


SEND:
-----------------------------------
<iq type=";set" id="282888293125"> <bind xmlns=&quot;urn:ietf:paramsml:nsmpp-bind&quot;> <resource>mytest</resource> </bind&gt; </iq>;

-----------------------------------


This is the last msg sent from my end. I don’t get anymore responses from gtalk server.
<<BindFailing.txt>>

  
Re: Issue in SASL authenticate after sending bind response.
user name
2007-12-09 09:43:32
Hello,

prima.donanokia.com wrote:
> After that I am not getting any response from the
server. I don’t get 
> any callback to the socket_in_event() method in LM.
> 
> Nor do I get any call to the bind handler that is
registered.
> 
> Is there something amiss?

Are you using blocking or non-blocking API? Blocking API
hasn't been
thoroughly tested in 1.3. I'm just working on fixing SASL +
blocking API
for 1.3.3, and I'm experiencing similar problems, which are
in my
case caused infinite blocking reads.

Regards,
Senko
_______________________________________________
Loudmouth mailing list
Loudmouthlists.imendio.com
h
ttp://lists.imendio.com/mailman/listinfo/loudmouth
Re: Issue in SASL authenticate after sending bindresponse.
user name
2007-12-10 03:13:13
I got the same working. It seemed to be like a time out
issue from our
end. The network connections were taking too much time after
a point. I
was using non blocking api's . 

We still face some problem. Attimes the login gets through
and attimes
not. We are attributing it to the slow network connections.

Thank you for the reply.

Regards
Prima

>-----Original Message-----
>From: loudmouth-bounceslists.imendio.com 
>[mailto:loudmouth-bounceslists.imendio.com] On
Behalf Of ext 
>Senko Rasic
>Sent: Sunday, December 09, 2007 9:14 PM
>To: Loudmouth List
>Subject: Re: [Loudmouth] Issue in SASL authenticate
after 
>sending bindresponse.
>
>Hello,
>
>prima.donanokia.com wrote:
>> After that I am not getting any response from the
server. I 
>don't get 
>> any callback to the socket_in_event() method in
LM.
>> 
>> Nor do I get any call to the bind handler that is
registered.
>> 
>> Is there something amiss?
>
>Are you using blocking or non-blocking API? Blocking API

>hasn't been thoroughly tested in 1.3. I'm just working
on 
>fixing SASL + blocking API for 1.3.3, and I'm
experiencing 
>similar problems, which are in my case caused infinite
blocking reads.
>
>Regards,
>Senko
>_______________________________________________
>Loudmouth mailing list
>Loudmouthlists.imendio.com
>h
ttp://lists.imendio.com/mailman/listinfo/loudmouth
>
_______________________________________________
Loudmouth mailing list
Loudmouthlists.imendio.com
h
ttp://lists.imendio.com/mailman/listinfo/loudmouth

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )