Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic SamrRidToSid (Opnum 65)

The SamrRidToSid method obtains the SID of an account, given a RID.

long SamrRidToSid(
  [in] SAMPR_HANDLE ObjectHandle,
  [in] unsigned long Rid,
  [out] PRPC_SID* Sid

ObjectHandle: An RPC context handle, as specified in section 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:

  1. The ObjectHandle.HandleType MUST be "Domain", "User", "Group", or "Alias".

  2. The output parameter Sid MUST be set to the objectSid attribute value of the object referenced by the Rid parameter.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.