group_membership.go 1.1 KB

12345678910111213141516171819
  1. package mstypes
  2. // GroupMembership implements https://msdn.microsoft.com/en-us/library/cc237945.aspx
  3. // RelativeID : A 32-bit unsigned integer that contains the RID of a particular group.
  4. // The possible values for the Attributes flags are identical to those specified in KERB_SID_AND_ATTRIBUTES
  5. type GroupMembership struct {
  6. RelativeID uint32
  7. Attributes uint32
  8. }
  9. // DomainGroupMembership implements https://msdn.microsoft.com/en-us/library/hh536344.aspx
  10. // DomainId: A SID structure that contains the SID for the domain.This member is used in conjunction with the GroupIds members to create group SIDs for the device.
  11. // GroupCount: A 32-bit unsigned integer that contains the number of groups within the domain to which the account belongs.
  12. // GroupIds: A pointer to a list of GROUP_MEMBERSHIP structures that contain the groups to which the account belongs in the domain. The number of groups in this list MUST be equal to GroupCount.
  13. type DomainGroupMembership struct {
  14. DomainID RPCSID `ndr:"pointer"`
  15. GroupCount uint32
  16. GroupIDs []GroupMembership `ndr:"pointer,conformant"` // Size is value of GroupCount
  17. }