<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'>&lt;auth
xmlns=&quot;urn:ietf:params:xml:ns:xmpp-sasl&quot; mechanism=&quot;PLAIN&quot;&gt;base64.encode(username+&#8221;@&#8221;+host+&#8221;\0&#8221;+username+&#8221;\0&#8221;+password)&lt;/auth&gt;<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>&nbsp;</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>&nbsp;</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:&nbsp; In which format should I send the base64 information ?
<br>
I tried : <br>
&lt;auth
xmlns=&quot;urn:ietf:params:xml:ns:xmpp-sasl&quot;mechanism=&quot;PLAIN&quot;&gt;'+Base64.Encode(&quot;&lt;username&gt;adi&lt;/username&gt;&lt;password&gt;secret&lt;/password&gt;&quot;)+&quot;&lt;/auth&gt;<br>
<br>
I guess the nodes &lt;username&gt; and &lt;password&gt; 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
&lt;norman@rasmussen.co.za&gt;</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'>&lt;auth xmlns=&quot;urn:ietf:params:xml:ns:xmpp-sasl&quot;</span></font></tt><br>
<tt><font face="Courier New">mechanism=&quot;PLAIN&quot;&gt;{base64 data here}&lt;/auth&gt;</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>
&gt; Hey Normann,<br>
&gt;<br>
&gt; No, I don't think so.<br>
&gt; According to the xmpp RFC3920 specifications<br>
&gt; (http://www.xmpp.org/specs/rfc3920.html#tls )<br>
&gt; I need to select the mechanism first. The credentials are sent through an<br>
&gt; iq packet after the negotiation ended.<br>
&gt;<br>
&gt; Adrian.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Norman Rasmussen <norman @rasmussen.co.za="">wrote:<br>
&gt;<br>
&gt; shouldn't you be sending the PLAIN data in the auth request? i.e.<br>
&gt; take the username and password, base64 encode them, and send them as<br>
&gt; part of the auth stanza.<br>
&gt;<br>
&gt; --<br>
&gt; - Norman Rasmussen<br>
&gt; - Email: norman@rasmussen.co.za<br>
&gt; - Home page: http://norman.rasmussen.co.za/<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ________________________________<br>
&gt; Yahoo! Mail<br>
&gt; Bring photos to life! New PhotoMail makes sharing a breeze.<br>
&gt;<br>
&gt;<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>&nbsp;</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>