Limitations of Custom Fields in Active Directory

active-directory

I am currently looking into the possibility/feasibility of using Custom Fields in Active Directory for storing information per user within our domain network, but have a few questions regarding the custom fields themselves, namely:

  1. What are the limitations of these fields, if any?
  2. Is there a maximum field length?
  3. Is there a maximum number of custom fields available per user?
  4. Are there any known read/write performance issues (from C#) with using them for this purpose?

Best Answer

edit: Wrote this answer before I knew you were talking about Exchange, so it's more about AD in general.

Yes there are limits. Your first consideration might be that the attribute you want to use is not indexed. This is as easy as clicking a checkbox to change. Indexing an attribute makes queries involving that attribute faster, at the cost of database and replication size.

Secondly, your custom attribute may not be replicated to Global Catalogs. This may be an issue if you have many domains and you might need to access this information from another domain. This is also easy to fix, but again, be mindful that you're adding replication load.

There are a ton of attributes already in the AD schema that are not being used. Perhaps you can repurpose some of them. For instance, the Likewise/Powerbroker and Centrify clients that allow Linux computers to join AD domains... no AD schema extensions are required because those clients use preexisting attributes in AD to store Unix-specific information.

Yes attributes have a set size limit, and that limit is different for every attribute. Not just size limit, but they can be different types of data as well. A multi-valued string, for instance. Each attribute can also have a specific allowed range, security descriptor, etc. These constraints are fixed as part of the schema. Here is a reference of Active Directory attributes... the info is a little old but the idea is the same. You have linked attributes, ANR (ambiguous name resolution) attributes, etc., that all behave a little differently and have different purposes.

As a last piece of advice - consider any changes you make to your AD schema permanent and irreversible. So do it only after a lot of forethought and planning.