<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
tt
        {font-family:"Courier New";}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=RU link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>Good Day, <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>Try: <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><auth
xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="PLAIN">base64.encode(username+”@”+host+”\0”+username+”\0”+password)</auth><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
jdev-bounces@jabber.org [mailto:jdev-bounces@jabber.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Adrian Adrian<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, March 22, 2006
3:24 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Jabber software development
list<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [jdev] tls + plain
sasl not working</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Good point. <br>
One more question: In which format should I send the base64 information ?
<br>
I tried : <br>
<auth
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"mechanism="PLAIN">'+Base64.Encode("<username>adi</username><password>secret</password>")+"</auth><br>
<br>
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. <br>
<br>
Thank you. <br>
<br>
<b><i><span style='font-weight:bold;font-style:italic'>Norman Rasmussen
<norman@rasmussen.co.za></span></i></b> wrote:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>you should be sending:<br>
<br>
<br>
<br>
<auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><o:p></o:p></span></font></p>
</auth><pre><tt><font size=2 face="Courier New"><span style='font-size:10.0pt'><auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl"</span></font></tt><br>
<tt><font face="Courier New">mechanism="PLAIN">{base64 data here}</auth></font></tt><o:p></o:p></pre>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
That's the way PLAIN works, DIGEST-MD5 doesn't have an initial client<br>
to server payload, so that's why it's empty in the examples.<br>
<br>
On 3/22/06, Adrian Adrian <flashbk2003 @yahoo.com="">wrote:<br>
> Hey Normann,<br>
><br>
> No, I don't think so.<br>
> According to the xmpp RFC3920 specifications<br>
> (http://www.xmpp.org/specs/rfc3920.html#tls )<br>
> I need to select the mechanism first. The credentials are sent through an<br>
> iq packet after the negotiation ended.<br>
><br>
> Adrian.<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> Norman Rasmussen <norman @rasmussen.co.za="">wrote:<br>
><br>
> shouldn't you be sending the PLAIN data in the auth request? i.e.<br>
> take the username and password, base64 encode them, and send them as<br>
> part of the auth stanza.<br>
><br>
> --<br>
> - Norman Rasmussen<br>
> - Email: norman@rasmussen.co.za<br>
> - Home page: http://norman.rasmussen.co.za/<br>
><br>
><br>
><br>
> ________________________________<br>
> Yahoo! Mail<br>
> Bring photos to life! New PhotoMail makes sharing a breeze.<br>
><br>
><br>
<br>
<br>
--<br>
- Norman Rasmussen<br>
- Email: norman@rasmussen.co.za<br>
- Home page: http://norman.rasmussen.co.za/<br>
<br>
<o:p></o:p></span></font></p>
</norman></flashbk2003>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=1 width="100%" align=center>
</span></font></div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Yahoo! Mail<br>
<a
href="http://pa.yahoo.com/*http:/us.rd.yahoo.com/evt=38867/*http:/photomail.mail.yahoo.com">Use
Photomail</a> to share photos without annoying attachments.<o:p></o:p></span></font></p>
</div>
</div>
</body>
</html>