<div class="content" name="NetrLogonSamLogon" uuid="a3a192c8-0070-4ae3-a537-dfe0a144426a"><p>The <b>NetrLogonSamLogon</b> method<a id="Appendix_A_Target_223"></a><a aria-label="Product behavior note 223" href="0c858a52-732a-43ec-85dd-e44b357c1898#Appendix_A_223" data-linktype="relative-path">&lt;223&gt;</a> is a predecessor to the <span><a href="d17f1077-de4b-4fcd-8867-39068cb789f5" data-linktype="relative-path">NetrLogonSamLogonWithFlags</a></span>
method (section 3.5.4.5.2). All parameters of this method have the same
meanings as the identically named parameters of the NetrLogonSamLogonWithFlags
method. </p><dl>
<dd>
<div><pre> NTSTATUS NetrLogonSamLogon(
   [in, unique, string] LOGONSRV_HANDLE LogonServer,
   [in, string, unique] wchar_t* ComputerName,
   [in, unique] PNETLOGON_AUTHENTICATOR Authenticator,
   [in, out, unique] PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
   [in] NETLOGON_LOGON_INFO_CLASS LogonLevel,
   [in, switch_is(LogonLevel)] PNETLOGON_LEVEL LogonInformation,
   [in] NETLOGON_VALIDATION_INFO_CLASS ValidationLevel,
   [out, switch_is(ValidationLevel)] 
     PNETLOGON_VALIDATION ValidationInformation,
   [out] UCHAR * Authoritative
 );
</pre></div>
</dd></dl><p>Message processing<a id="Appendix_A_Target_224"></a><a aria-label="Product behavior note 224" href="0c858a52-732a-43ec-85dd-e44b357c1898#Appendix_A_224" data-linktype="relative-path">&lt;224&gt;</a> is
identical to <span><a href="17257351-3384-4de5-bfe0-453926ef67cd" data-linktype="relative-path">NetrLogonSamLogonEx</a></span>,
as specified in section 3.5.4.5.1, except for the following:</p><ul><li><p><span><span> 
</span></span>The method uses Netlogon <span><a href="b5e7d25a-40b2-41c8-9611-98f53358af66#gt_e72a2c02-84a2-4ce3-b66f-86f725642dc3" data-linktype="relative-path">authenticators</a></span>, so
instead of checking for Secure RPC, the server MUST confirm the validity of the
<i>Authenticator</i> (section <span><a href="da7acaa3-030b-481e-979b-f58f89389806" data-linktype="relative-path">3.1.4.5</a></span>) that it
received using the ComputerName for the <span><a href="b5e7d25a-40b2-41c8-9611-98f53358af66#gt_08ce423c-9f9c-48ed-afa8-8b64c04ecdca" data-linktype="relative-path">secure channel</a></span> to
find the corresponding record in the ClientSessionInfo table. If the <i>Authenticator</i>
parameter is valid, the server MUST compute the <i>ReturnAuthenticator</i>
parameter returned (section 3.1.4.5). Otherwise, the server MUST return
STATUS_ACCESS_DENIED.</p>
</li><li><p><span><span> 
</span></span>The ExtraFlags parameter is not processed. </p>
</li></ul><p>This method SHOULD only be called by a machine that has established
a secure channel with the server.</p><p>On receiving this call, the server MUST perform the
following validation step:</p><ul><li><p><span><span> 
</span></span>Apply Common Error Processing Rule A, specified in section <span><a href="2d776bfc-e81f-4c8f-9da8-4c2920f65413" data-linktype="relative-path">3</a></span>.</p>
</li></ul></div>