Platform SDK: Active Directory, ADSI, and Directory Services |
A group is represented as a group object in Active Directory. The group object has seven important properties:
ADS_GROUP_TYPE_DOMAIN_LOCAL_GROUP
ADS_GROUP_TYPE_GLOBAL_GROUP
ADS_GROUP_TYPE_SECURITY_ENABLED
ADS_GROUP_TYPE_UNIVERSAL_GROUP
The first three flags specify the group scope.
The ADS_GROUP_TYPE_SECURITY_ENABLED flag indicates the type of the group. If this flag is set, the group is a security group. If this flag is not set, the group is a distribution group.
The objectGUID is a 128-bit GUID structure stored as an OctetString.
Each group has a unique SID that the Windows NT®/Windows® 2000 Server domain issues that is stored in the objectSid property of the group object in the directory. Each time a user logs on, the system retrieves the SID for the groups of which the user is a member and places it in the user's access token. The system uses the SIDs in the user's access token to identify the user and his/her group memberships in all subsequent interactions with Windows NT/Windows 2000 security.
When a SID has been used as the unique identifier for a user or group, it cannot ever be used again to identify another user or group.
The sAMAccountName must be unique among all security principal objects within a domain.