DB2 Version 9.7 for Linux, UNIX, and Windows

Extending the Active Directory Schema for LDAP directory services (Windows)

If you plan to use the Lightweight Directory Access Protocol (LDAP) directory server feature with Windows Server 2003, you have to extend the Active Directory schema to contain DB2® object classes and attribute definitions using the db2schex command.

About this task

To extend the directory schema:

Before you begin

Extending the directory schema before installing DB2 products and creating databases provide the following benefits:
  • The default DB2 instance, created during the installation, is cataloged as a DB2 node in Active Directory, provided that the installation user ID had sufficient privileges to write to Active Directory.
  • Any databases created after installation is automatically cataloged into Active Directory.

Procedure

  1. Log onto any machine that is part of the Windows domain with a Windows user account that has Schema Administration authority.
  2. Run the db2schex command from the installation DVD . You can run this command without logging off and logging on again, as follows:
       runas /user:MyDomain\Administrator x:\db2\Windows\utilities\db2schex.exe
    where x: represents the DVD drive letter.

What to do next

When db2schex completes, you can proceed with the installation of your DB2 product; or if you have already installed DB2 products or created databases, you have to manually register the node and catalog the databases. For more information, see the "Enabling LDAP support after DB2 installation is complete" topic.