184.108.40.206.5 SamrRidToSid (Opnum 65)
long SamrRidToSid( [in] SAMPR_HANDLE ObjectHandle, [in] unsigned long Rid, [out] PRPC_SID* Sid );
ObjectHandle: An RPC context handle, as specified in section 220.127.116.11. The message processing shown later in this section contains details on which types of ObjectHandle are accepted by the server.
Rid: A RID of an account.
Sid: The SID of the account referenced by Rid.
This protocol asks the RPC runtime, via the strict_context_handle attribute, to reject the use of context handles created by a method of a different RPC interface than this one, as specified in [MS-RPCE] section 3.
Upon receiving this message, the server MUST process the data from the message subject to the following constraints:
The ObjectHandle.HandleType MUST be "Domain", "User", "Group", or "Alias".
The output parameter Sid MUST be set to a SID whose domain SID prefix is equal to the domain SID prefix of the objectSid attribute of the object identified by ObjectHandle, and whose RID suffix is equal to the Rid parameter.