Platform SDK: Active Directory, ADSI, and Directory Services

Creating a Definition for a Schema Attribute

To create a definition for a custom attribute, do the following:

  1. Go to the definition of Custom Attribute 1 in the Exchange schema container.
  2. Double-click the Search-Flags attribute in the list box on the left.
  3. The value is 0 by default. Change it to 1.
  4. Click Set.
  5. Restart the Exchange Directory Service. Upon restart, the index is created.

Now Custom Attribute 1 is indexed in the Exchange directory. Searches on the value of this attribute will be performed much faster.

Note  Custom attributes are not exposed to the Outlook Client Address Book. To do this, you must customize the Outlook address template using the Exchange Administrator application. Also, if you wish to only access this attribute programmatically, and do not wish to expose it through the default Administrator application, then you should select custom attributes 11 through 15. However, as mentioned above, custom attributes 11 through 15 are viewable through the Exchange Administrator application's raw mode option. They are also viewable using LDAP import and export.