2.5.8.3.2 NetUserInfo1 Data Structure

The NetUserInfo1 packet contains the following fields.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Name (21 bytes)

...

...

...

Pad

Password (16 bytes)

...

...

...

PasswordAge

...

Priv

HomeDirLow

HomeDirHigh

CommentLow

CommentHigh

Flags

ScriptPathLow

ScriptPathHigh

Name (21 bytes): A null-terminated ASCII string that specifies the user name for which information is retrieved.

Pad (1 byte): A pad byte. Can be set to any arbitrary value when sent, and MUST be ignored on receipt.

Password (16 bytes): A 16-byte field filled with zeros.

PasswordAge (4 bytes): A 32-bit integer that specifies the time in seconds since the user last changed his or her password.

Priv (2 bytes): A 16-bit, unsigned integer that specifies the user's privilege level. The possible values are as follows.

Value

Meaning

USER_PRIV_GUEST

0

Guest privilege

USER_PRIV_USER

1

User privilege

USER_PRV_ADMIN

2

Administrator privilege

HomeDirLow (2 bytes): A pointer to a null-terminated ASCII string that contains the path name of the user's home directory. Before using this value, the Remote Administration Protocol client MUST subtract the Converter field specified in section 2.5.2 from the HomeDirLow value, and then use that result as the offset within the response.

HomeDirHigh (2 bytes): Unused. Can be set to any arbitrary value when sent, and MUST be ignored on receipt.

CommentLow (2 bytes): MUST be a pointer to a null-terminated ASCII string that specifies the comment. Before using this value, the Remote Administration Protocol client MUST subtract the Converter field specified in section 2.5.2 from the CommentLow value, and then use that result as the offset within the response.

CommentHigh (2 bytes): Unused. Can be set to any arbitrary value when sent, and MUST be ignored on receipt.

Flags (2 bytes): The possible bits for user account types are as follows.

Value

Meaning

UF_TEMP_DUPLICATE_ACCOUNT

0x0100

This is an account for users whose primary account is in another domain. This account provides user access to this domain, but not to any domain that trusts this domain. Also known as a local user account.

UF_NORMAL_ACCOUNT

0x0200

This is a default account type that represents a typical user.

UF_INTERDOMAIN_TRUST_ACCOUNT

0x0800

This is a permit to trust account for a system domain that trusts other domains.

UF_WORKSTATION_TRUST_ACCOUNT

0x1000

This is a computer account for a computer that is a member of this domain.

UF_SERVER_TRUST_ACCOUNT

0x2000

This is a computer account for a system backup domain controller that is a member of this domain.

UF_MACHINE_ACCOUNT_MASK

0x3800

Machine account mask.

UF_ACCOUNT_TYPE_MASK

0x380A

Account type mask.

ScriptPathLow (2 bytes): A pointer to a null-terminated ASCII string that specifies the path for user's logon script.

ScriptPathHigh (2 bytes): Unused. Can be set to any arbitrary value when sent, and MUST be ignored on receipt.