<div class="content"><p align="right"><a href="https://msdn.microsoft.com/en-us/library/dc966b81-da27-4dae-a28c-ec16534f1cb9" data-linktype="external">msdn link</a></p><p>The SAMPR_USER_ALL_INFORMATION structure contains user
attribute information. Most fields are described in section <a href="899d68a9-8145-4334-a52f-2fbd92bec94f" data-linktype="relative-path">2.2.6.1</a>. The exceptions
are described below.</p><dl>
<dd>
<div><pre> typedef struct _SAMPR_USER_ALL_INFORMATION {
   OLD_LARGE_INTEGER LastLogon;
   OLD_LARGE_INTEGER LastLogoff;
   OLD_LARGE_INTEGER PasswordLastSet;
   OLD_LARGE_INTEGER AccountExpires;
   OLD_LARGE_INTEGER PasswordCanChange;
   OLD_LARGE_INTEGER PasswordMustChange;
   RPC_UNICODE_STRING UserName;
   RPC_UNICODE_STRING FullName;
   RPC_UNICODE_STRING HomeDirectory;
   RPC_UNICODE_STRING HomeDirectoryDrive;
   RPC_UNICODE_STRING ScriptPath;
   RPC_UNICODE_STRING ProfilePath;
   RPC_UNICODE_STRING AdminComment;
   RPC_UNICODE_STRING WorkStations;
   RPC_UNICODE_STRING UserComment;
   RPC_UNICODE_STRING Parameters;
   RPC_SHORT_BLOB LmOwfPassword;
   RPC_SHORT_BLOB NtOwfPassword;
   RPC_UNICODE_STRING PrivateData;
   SAMPR_SR_SECURITY_DESCRIPTOR SecurityDescriptor;
   unsigned long UserId;
   unsigned long PrimaryGroupId;
   unsigned long UserAccountControl;
   unsigned long WhichFields;
   SAMPR_LOGON_HOURS LogonHours;
   unsigned short BadPasswordCount;
   unsigned short LogonCount;
   unsigned short CountryCode;
   unsigned short CodePage;
   unsigned char LmPasswordPresent;
   unsigned char NtPasswordPresent;
   unsigned char PasswordExpired;
   unsigned char PrivateDataSensitive;
 } SAMPR_USER_ALL_INFORMATION,
  *PSAMPR_USER_ALL_INFORMATION;
</pre></div>
</dd></dl><p><b>LmOwfPassword:</b>  An <a href="77dbfdbb-6627-4871-ab12-5333929347dc" data-linktype="relative-path">RPC_SHORT_BLOB</a> structure
where <b>Length</b> and <b>MaximumLength</b> MUST be 16, and the <b>Buffer</b>
MUST be formatted with an <a href="ce061fef-6d4f-4802-bd5d-26b11f14f4a6" data-linktype="relative-path">ENCRYPTED_LM_OWF_PASSWORD</a>
structure with the cleartext value being an <a href="7b2aeb27-92fc-41f6-8437-deb65d950921#gt_58a72159-b1e9-4770-9b06-d7a6b16279a8" data-linktype="relative-path">LM hash</a>, and the encryption
key being the 16-byte SMB session key obtained as specified in either section <a href="c718b655-919f-43a8-8897-be080553e746" data-linktype="relative-path">3.1.2.4</a> or section <a href="a26ab2cb-3e09-4980-9f2d-8d75f73005ae" data-linktype="relative-path">3.2.2.3</a>.</p><p><b>NtOwfPassword:</b>  An RPC_SHORT_BLOB
structure where <b>Length</b> and <b>MaximumLength</b> MUST be 16, and the <b>Buffer</b>
MUST be formatted with an ENCRYPTED_NT_OWF_PASSWORD structure with the
cleartext value being an <a href="7b2aeb27-92fc-41f6-8437-deb65d950921#gt_7eb5bce8-bdc5-4d61-a3d9-263ada14ba1f" data-linktype="relative-path">NT
hash</a>, and the encryption key being the 16-byte SMB session key obtained as
specified in either section 3.1.2.4 or section 3.2.2.3.</p><p><b>PrivateData:</b>  Not used. Ignored on
receipt at the server and client. Clients MUST set to zero when sent, and servers
MUST set to zero on return.</p><p><b>SecurityDescriptor:</b>  Not used.
Ignored on receipt at the server and client. Clients MUST set to zero when
sent, and servers MUST set to zero on return.</p><p><b>WhichFields:</b>  A 32-bit bit field
indicating which fields within the SAMPR_USER_ALL_INFORMATION structure will be
processed by the server. Section <a href="2675c176-72e0-4ac9-ae6d-cdd87b8ba520" data-linktype="relative-path">2.2.1.8</a> specifies the
valid bits and also specifies the structure field to which each bit
corresponds.</p><dl>
<dd>
<p><b>Note</b>  If a given bit is set, the
associated field MUST be processed; if a given bit is not set, then the
associated field MUST be ignored.</p>
</dd></dl><p><b>LmPasswordPresent:</b>  If zero,
LmOwfPassword MUST be ignored; otherwise, LmOwfPassword MUST be processed.</p><p><b>NtPasswordPresent:</b>  If zero, NtOwfPassword
MUST be ignored; otherwise, NtOwfPassword MUST be processed.</p><p><b>PrivateDataSensitive:</b>  Not used.
Ignored on receipt at the server and client.</p></div>