18.104.22.168.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 22.214.171.124. 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 the objectSid attribute value of the object referenced by the Rid parameter.