ADS_SECURITY_INFO_ENUM

The ADS_SECURITY_INFO_ENUM enumeration specifies the available options for examining security data of an object.

Syntax

enum ADS_SECURITY_INFO_ENUM
{
    ADS_SECURITY_INFO_OWNER   = 1,  //0x1
    ADS_SECURITY_INFO_GROUP   = 2,  //0x2
    ADS_SECURITY_INFO_DACL    = 4,  //0x4
    ADS_SECURITY_INFO_SACL    = 8   //0x8
}

Constants

  • Flag

  • Description

  • ADS_SECURITY_INFO_OWNER

  • Gets or sets the owner data.

  • ADS_SECURITY_INFO_GROUP

  • Gets or sets the group data.

  • ADS_SECURITY_INFO_DACL

  • Gets or sets the discretionary access-control list data.

  • ADS_SECURITY_INFO_SACL

  • Gets or sets the system access-control list data.

Remarks

The options defined in this enumeration are bit-masks. More than one option can be set using appropriate bitwise operations.

To read the security data for an object, use the IADsObjectOptions interface, supplying the security data options listed in this enumeration.

The following table lists common flag combinations and their use.

  • Flag combination

  • Description

  • ADS_SECURITY_INFO_OWNER,
    ADS_SECURITY_INFO_GROUP,
    and ADS_SECURITY_INFO_DACL

  • Enable users to read the security data of the owner, group, or DACL of an object. This is the default setting when an object is created.

  • ADS_SECURITY_INFO_OWNER,
    ADS_SECURITY_INFO_GROUP,
    ADS_SECURITY_INFO_DACL,
    and ADS_SECURITY_INFO_SACL

  • Enable users to read the SACL. The ADS_SECURITY_INFO_SACL flag cannot be used by itself.

Requirements

Minimum required version: 2009.1

See also