2.2.2.8 unix_account
This type is used to specify a UNIX account name in MBCS format, in addition to an ID used to search for the corresponding Windows account information when mapping a UNIX account name to a Windows account name. For more information, see sections 2.2.5.2 and 2.2.5.8.
-
struct unix_account { long SearchOption; long Reserved; long ID; MapSvrMBCSNameString UnixAccountName; };
SearchOption: An XDR-encoded, 32-bit signed integer that defines the user search criteria to use for the request. SearchOption MUST be one of the following values.
-
Value
Meaning
0x00000001
If set, UnixAccountName is valid and MUST be used as the search criterion.
0x00000002
If set, ID is valid and MUST be used as the search criterion.
0x00000003
If set, UnixAccountName and ID are both valid and both MUST be used as the search criteria.
Reserved: A 32-bit signed integer that MUST be sent as 0x00000000 and MUST be ignored on receipt.
ID: An XDR-encoded, 32-bit signed integer that contains the UNIX account ID to use as the search criterion. If SearchOption is not 0x00000002 or 0x00000003, this value MUST be ignored.
UnixAccountName: A MapSvrMBCSNameString (section 2.2.2.2) that contains the name of the UNIX account to use as the search criterion. The length of the string MUST NOT exceed 128 bytes. POSIX user and group account name constraints are specified in [IEEE1003.1]. If SearchOption is not 0x00000001 or 0x00000003, this value MUST be ignored.