<div class="content" name="NETLOGON_SAM_LOGON_RESPONSE_NT40" uuid="9c5a9e2c-2aae-40e2-8fcb-b9dfc032ac3b"><p>The NETLOGON_SAM_LOGON_RESPONSE_NT40 structure is the
server&#39;s response to an <span><a href="b645c125-a7da-4097-84a1-2fa7cea07714#gt_a01cea16-0836-469c-81d4-9eeb52be1ad6" data-linktype="relative-path">LDAP ping</a></span> (section <span><a href="895a7744-aff3-4f64-bcfa-f8c05915d2e9" data-linktype="relative-path">6.3.3</a></span>)
or a <span><a href="b645c125-a7da-4097-84a1-2fa7cea07714#gt_0a5fd868-ff77-4beb-838e-79f98cbe3898" data-linktype="relative-path">mailslot
ping</a></span> (section <span><a href="2cff75a9-5871-4493-a704-017b506f8df0" data-linktype="relative-path">6.3.5</a></span>).</p><table>
 <tbody><tr>
  <th><p><br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>1<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>2<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>3<br/>0</p></th>
  <th><p><br/>1</p></th>
 </tr>
 <tr>
  <td colspan="16">Opcode</td>
  <td colspan="16">UnicodeLogonServer (variable)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">UnicodeUserName (variable)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">UnicodeDomainName (variable)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">NtVersion</td>
 </tr>
 <tr>
  <td colspan="16">LmNtToken</td>
  <td colspan="16">Lm20Token</td>
 </tr>
</tbody></table><p><b>Opcode (2 bytes): </b>Operation code (see section <span><a href="07133ff2-a9a3-4aa9-8896-a7dcb53bdfe9" data-linktype="relative-path">6.3.1.3</a></span>).</p><p><b>UnicodeLogonServer (variable): </b>Null-terminated
<span><a href="b645c125-a7da-4097-84a1-2fa7cea07714#gt_c305d0ab-8b94-461a-bd76-13b40cb8c4d8" data-linktype="relative-path">Unicode</a></span>
value of the <span><a href="b645c125-a7da-4097-84a1-2fa7cea07714#gt_b86c44e6-57df-4c48-8163-5e3fa7bdcff4" data-linktype="relative-path">NetBIOS</a></span> name of the
server. This field MUST contain at least one character: the null terminator.
Each Unicode value is encoded as 2 bytes.</p><p><b>UnicodeUserName (variable): </b>Null-terminated
Unicode value of the name of the user copied directly from the client&#39;s
request. This field MUST contain at least one character: the null terminator.
Each Unicode value is encoded as 2 bytes. </p><p><b>UnicodeDomainName (variable): </b>Null-terminated
Unicode value of the NetBIOS name of the <span><a href="b645c125-a7da-4097-84a1-2fa7cea07714#gt_784c7cce-f782-48d8-9444-c9030ba86942" data-linktype="relative-path">NC</a></span>. This field MUST
contain at least one character: the null terminator. Each Unicode value is
encoded as 2 bytes.</p><p><b>NtVersion (4 bytes): </b>Set to
NETLOGON_NT_VERSION_1.</p><p><b>LmNtToken (2 bytes): </b>This MUST be set to
0xFFFF.</p><p><b>Lm20Token (2 bytes): </b>This MUST be set to
0xFFFF.</p><p><b>Note</b>  All multibyte quantities are represented
in little-endian byte order.</p></div>