[jdev] tls + plain sasl not working

Bilyk, Yuriy YBilyk at luxoft.com
Wed Mar 22 07:30:21 CST 2006


Good Day, 

Try: 

<auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl"
mechanism="PLAIN">base64.encode(username+"@"+host+"\0"+username+"\0"+pas
sword)</auth>

 

________________________________

From: jdev-bounces at jabber.org [mailto:jdev-bounces at jabber.org] On Behalf
Of Adrian Adrian
Sent: Wednesday, March 22, 2006 3:24 PM
To: Jabber software development list
Subject: Re: [jdev] tls + plain sasl not working

 

Good point. 
One more question:  In which format should I send the base64 information
? 
I tried : 
<auth
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"mechanism="PLAIN">'+Base64.Encod
e("<username>adi</username><password>secret</password>")+"</auth>

I guess the nodes <username> and <password> are not the right ones but I
can't find anywhere the right syntax for the auth node. 

Thank you. 

Norman Rasmussen <norman at rasmussen.co.za> wrote:

you should be sending:





<auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl"

mechanism="PLAIN">{base64 data here}</auth>



That's the way PLAIN works, DIGEST-MD5 doesn't have an initial client
to server payload, so that's why it's empty in the examples.

On 3/22/06, Adrian Adrian wrote:
> Hey Normann,
>
> No, I don't think so.
> According to the xmpp RFC3920 specifications
> (http://www.xmpp.org/specs/rfc3920.html#tls )
> I need to select the mechanism first. The credentials are sent through
an
> iq packet after the negotiation ended.
>
> Adrian.
>
>
>
>
>
>
>
>
> Norman Rasmussen wrote:
>
> shouldn't you be sending the PLAIN data in the auth request? i.e.
> take the username and password, base64 encode them, and send them as
> part of the auth stanza.
>
> --
> - Norman Rasmussen
> - Email: norman at rasmussen.co.za
> - Home page: http://norman.rasmussen.co.za/
>
>
>
> ________________________________
> Yahoo! Mail
> Bring photos to life! New PhotoMail makes sharing a breeze.
>
>


--
- Norman Rasmussen
- Email: norman at rasmussen.co.za
- Home page: http://norman.rasmussen.co.za/



 

________________________________

Yahoo! Mail
Use Photomail
<http://pa.yahoo.com/*http:/us.rd.yahoo.com/evt=38867/*http:/photomail.m
ail.yahoo.com>  to share photos without annoying attachments.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20060322/7bd9400f/attachment-0002.htm>


More information about the JDev mailing list