Step 5: Update the Active Directory Schema

Applies To: Windows Server 2008

Follow this procedure to update the user and group classes with the uidNumber and gidNumber attributes in the Active Directory schema.

To update the Active Directory schema

  1. Open an elevated command prompt. (Click Start, right-click Command Prompt, and then click Run as administrator.)

  2. Navigate to the C:\WINDOWS\ADAM directory, and then type the following command:

    regsvr32 schmmgmt.dll

    This command enables the Active Directory plug-in, schmmgmt.dll.

  3. Click Start, click Run, and type MMC to open the Microsoft Management Console (MMC).

  4. On the File menu, click Add/Remove Snap-in.

  5. In the Add or Remove Snap-ins dialog box, click Active Directory Schema, click Add, and then click OK.

  6. Right-click the Active Directory Schema node, and then click Change Active Directory Domain Controller to connect to the AD LDS instance that was previously created.

  7. In the Change Directory Server dialog box, under Change to, click This Domain Controller or AD LDS instance.

  8. In the Name column, replace the placeholder text <Type a Directory Server name[:port] here> with the server and port number (for example, localhost:389), and then click OK.

  9. Add the gidNumber and uidNumber attributes to the user class as follows:

    1. Expand the Active Directory Schema node, expand the Classes node, right-click User, and then click Properties.

    2. In the Properties dialog box, click the Attributes tab.

    3. Click Add to open the Select Schema Object dialog box, click gidNumber, and then click OK.

    4. Click Add to open the Select Schema Object dialog box, click uidNumber, and then click OK.

    5. Click OK.

  10. Add the gidNumber attribute to the group class as follows:

    1. Expand the Active Directory Schema node, expand the Classes node, right-click Group, and then click Properties.

    2. In the group Properties dialog box, click the Attributes tab.

    3. Click Add to open the Select Schema Object dialog box, click gidNumber, and then click OK.

    4. Click OK.

  11. Close the MMC, and then click Save.