Platform SDK: Active Directory, ADSI, and Directory Services |
The systemFlags property of an attributeSchema object contains flags that indicate various qualities of the attribute object, such as whether the attribute is constructed or nonreplicated. The ADS_SYSTEMFLAG_ENUM enumeration contains values for various systemFlags bits, including the following bits for constructed and nonreplicated properties.
ADS_SYSTEMFLAG_ATTR_NOT_REPLICATED = 0x00000001 ADS_SYSTEMFLAG_ATTR_IS_CONSTRUCTED = 0x00000004
You can use these bits to query for attributes that are constructed or nonreplicated. For example, the following query string finds all attributeSchema objects that are not replicated. Note that the query string uses the decimal equivalent of the value, not a hexadecimal number or the ADS_SYSTEMFLAG_ATTR_NOT_REPLICATED constant name. For more information about the matching rule OID used by this query string, see How to Specify Comparison Values.
(&(objectCategory=attributeSchema)(systemFlags:1.2.840.113556.1.4.804:=1))
The searchFlags property of each property's attributeSchema object defines whether a property is indexed (indexed has a value of 1, non-indexed is 0). For example, the following query string finds the attributeSchema objects representing indexed properties:
(&(objectCategory=attributeSchema)(searchFlags=1))
The isMemberOfPartialAttributeSet property of each property's attributeSchema object defines whether a property is replicated to the global catalog (in the global catalog that has a value of TRUE, not in the global catalog that is FALSE). For example, the following query string finds the attributeSchema objects representing global catalog properties:
(&(objectCategory=attributeSchema)(isMemberOfPartialAttributeSet=TRUE))