<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:m="http://schemas.microsoft.com/office/2004/12/omml" 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 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@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:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi Metze:<o:p></o:p></p>
<p class="MsoNormal">We have finished our investigation on your question regarding anonymous user and session flag SMB2_SESSION_FLAG_IS_NULL. An upcoming release of MS-SMB2 will have the following modifications. I am also attaching a PDF version of the changes
 that uses color and strikethrough to highlight the changes.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Section “3.2.5.3.1   Handling a New Authentication”<o:p></o:p></p>
<p class="MsoNormal">--------------------------------------------------------------<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Existing text:<o:p></o:p></p>
<p class="MsoNormal">“<o:p></o:p></p>
<p class="MsoNormal">o             If the SMB2_SESSION_FLAG_IS_NULL bit is set in the SessionFlags field of the SMB2 SESSION_SETUP Response, Session.SigningRequired MUST be set to FALSE.
<o:p></o:p></p>
<p class="MsoNormal">o             If the SMB2_SESSION_FLAG_IS_GUEST bit is set in the SessionFlags field of the SMB2 SESSION_SETUP Response AND if Session.SigningRequired is TRUE, this indicates a SESSION_SETUP failure and the connection MUST be terminated.<o:p></o:p></p>
<p class="MsoNormal">“<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Modified text:<o:p></o:p></p>
<p class="MsoNormal">“<o:p></o:p></p>
<p class="MsoNormal">o             If the security subsystem indicates that the session was established by an anonymous user, Session.SigningRequired MUST be set to FALSE.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">o             If the SMB2_SESSION_FLAG_IS_GUEST bit is set in the SessionFlags field of the SMB2 SESSION_SETUP Response AND if Session.SigningRequired is TRUE, this indicates a SESSION_SETUP failure and the connection MUST be terminated.
 If the SMB2_SESSION_FLAG_IS_GUEST bit is set in the SessionFlags field of the SMB2 SESSION_SETUP Response AND if  RequireMessageSigning is FALSE, Session.SigningRequired MUST be set to FALSE. 
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Section “3.3.5.5.3   Handling GSS-API Authentication”<o:p></o:p></p>
<p class="MsoNormal">----------------------------------------------------------------<o:p></o:p></p>
<p class="MsoNormal">Existing text:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">“<o:p></o:p></p>
<p class="MsoNormal">4.            The server MUST invoke the GSS_Inquire_context call as specified in [RFC2743] section 2.2.6,
<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in">passing the Session.SecurityContext as the context_handle parameter.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:.5in">If the returned anon_state is TRUE, the server MUST set Session.IsAnonymous to TRUE and
<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in">set the SMB2_SESSION_FLAG_IS_NULL flag in the SessionFlags field of the SMB2
<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in">SESSION_SETUP Response.  <o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:.5in">Otherwise, if the returned src_name corresponds to an implementation-specific guest
<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in">user,<201> the server MUST set the SMB2_SESSION_FLAG_IS_GUEST in the SessionFlags
<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in">field of the SMB2 SESSION_SETUP Response and MUST set Session.IsGuest to TRUE.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">5.            If either SMB2_SESSION_FLAG_IS_GUEST or SMB2_SESSION_FLAG_IS_NULL was set in the
<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in">SessionFlags, then Session.SigningRequired MUST be set to FALSE. Otherwise, if the
<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in">SecurityMode of the client request has the SMB2_NEGOTIATE_SIGNING_REQUIRED bit set, if
<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in">Connection.ShouldSign is set to TRUE, OR the global RequireMessageSigning is set to TRUE,
<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in">Session.SigningRequired MUST be set to TRUE.<o:p></o:p></p>
<p class="MsoNormal">“<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Modified text:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">“<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">4.  The server MUST invoke the GSS_Inquire_context call as specified in [RFC2743] section 2.2.6, passing the Session.SecurityContext as the context_handle parameter.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">If the returned anon_state is TRUE, the server MUST set Session.IsAnonymous to TRUE and the server MAY set the SMB2_SESSION_FLAG_IS_NULL flag in the SessionFlags field of the SMB2 SESSION_SETUP Response.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Otherwise, if the returned src_name corresponds to an implementation-specific guest user,<201> the server MUST set the SMB2_SESSION_FLAG_IS_GUEST in the SessionFlags field of the SMB2 SESSION_SETUP Response and
 MUST set Session.IsGuest to TRUE.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">5. Session.SigningRequired MUST be set to TRUE under the following conditions:<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in">o             SMB2_NEGOTIATE_SIGNING_REQUIRED bit is set in the SecurityMode field of the client request<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in">o             SMB2_SESSION_FLAG_IS_GUEST is not set in the SessionFlags and Session.IsAnonymous is FALSE and either
<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in">Connection.ShouldSign or global RequireMessageSigning is TRUE<o:p></o:p></p>
<p class="MsoNormal">“<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Please let me know if it does not answer your question.<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:#1F497D">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Obaid Farooqi<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Escalation Engineer | Microsoft<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Exceeding your expectations is my highest priority.  If you would like to provide feedback on your case you may contact my manager at nkang at Microsoft dot com</span><span style="color:#1F497D"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Obaid Farooqi
<br>
<b>Sent:</b> Tuesday, May 15, 2012 5:09 PM<br>
<b>To:</b> 'Stefan (metze) Metzmacher' (metze@samba.org)<br>
<b>Cc:</b> MSSolve Case Email<br>
<b>Subject:</b> Check IS_ANONYMOUS in W8 2008 R2 on SMB2 (and SMB1) to see why bit isn't set to TRUE<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi Metze:<o:p></o:p></p>
<p class="MsoNormal">I’ll help you with this issue and will be in touch as soon as I have an answer.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Can you please send me a network trace exhibiting this behavior?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Obaid Farooqi<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Escalation Engineer | Microsoft<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Exceeding your expectations is my highest priority.  If you would like to provide feedback on your case you may contact my manager at nkang at Microsoft dot com</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>