Previous in Contents Next in Contents

Working with the Active User Objects (AUO)

The Active User Objects (AUO) are a set of COM classes (objects) that greatly simplify working with directory database data that is accessible through Active Directory Services COM objects. The Active User Objects have coclass logical names UserObjects, SchemaObjects, and AuoConfig. The UserObjects and SchemaObjects coclasses provide the "front-end" services that programmers and script writers can use to automatically and easily access directory information about Membership users. Administrators can use the AuoConfig coclass to configure desired AUO providers, and less-privileged accounts can use it to view the unrestricted information that makes up these provider configurations.

The AUO relies on other COM objects to provide the raw connectivity to various directory services, databases, or other data sources. At an absolute minimum, these COM objects must implement the core Active Directory Service COM Interfaces (ADSI) with logical names IADs and IADsContainer. It is through these generic interfaces that these objects provide basic storage/retrieval functionality and hierarchic structuring of data to the client application. Of course, these interfaces allow complete polymorphism on the part of the implementation, in effect hiding all of the details of how data is actually gathered or organized from the client application. The Microsoft® Site Server version 3.0 product comes with a generic set of COM objects that provide standard connectivity to a variety of data services. These include the Lightweight Directory Access Protocol v3-compliant databases (LDAP), the WinNT core directory services (WinNT), and the Microsoft® Internet Information Server (IIS) metabase (IIS). The registry location [HKLM\Software\Microsoft\ADs\Providers] lists all the currently installed and available Active Directory Service (ADs) providers.  Knowledge of how to construct ADs paths for each of these namespaces is a requirement when configuring the AUO.  In the example below, the LDAP namespace will be demonstrated.

The examples that follow make use of the following COM classes:


© 1997-2000 Microsoft Corporation. All rights reserved.