Phantoms, tombstones and the infrastructure master (248047)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server

This article was previously published under Q248047

SUMMARY

This article describes how phantoms are used in Windows 2000.

MORE INFORMATION

Phantom objects are low level database objects that Active Directory uses for internal management operations. Two common instances of phantom objects in a Windows 2000 Active Directory are:
  1. An object that has been deleted.

    The tombstone lifetime has passed, but references to the object are still present in the directory database.
  2. A domain local group has a member user from another domain in the Active Directory forest.
Phantom objects are special kinds of internal database tracking objects and cannot be viewed through any LDAP or Active Directory Service Interface (ADSI).

Object Deletion

When an object is deleted from the active directory, the object goes through the following process.

Stage 1: Normal Objects

The object first exists as a normal Active Directory object. You can view the object by using the appropriate Active Directory and through the LDAP interface.

The object moves to Stage 2 when the object is deleted by an administrator or through another means.

Stage 2: Deleted Objects Before the Tombstone Lifetime Expires

The object now exists as a Tombstone object for the length of the tombstone lifetime interval. While the object maintains some of its original form:
  • Object is still a normal (non phantom) object.
  • The objectGUID attribute has not changed.
The object has also been significantly modified from its original form:
  • The object moves to the DeletedObjects container (unless the object is flagged as a special system object)
  • The object's dn attribute contains (esc)DEL:GUID
  • Most of the object's other attributes have been removed completely.
The schema of the object determines the attributes that are removed, and the attributes that are kept after deletion. The designation of each attribute for an object class can be changed.

The objects cannot be seen from normal Active Directory management tools. You may configure a low level LDAP interface like LDP to view these objects: The object moves to one of two possible states (Stage 3 or 4) when the tombstone lifetime has expired. The default tombstone lifetime is 60 days.

Stage 3: (Normal) Object is Removed from the Active Directory Database Completely

If there no references to this object remain in the Active Directory, the row in the database is completely removed and there are no traces of the object left.

Stage 4: (External References Still Exist) Phantom Object

If there are any references to this object remain in the Active Directory, the object itself is deleted and a a phantom object is created in its place until those references are removed. This phantom object is deleted when all references to the object are removed.

You cannot view these phantom objects through any LDAP or ADSI interface. NOTE: During the removal of the global catalog from a domain controller, the read-only objects that are removed from the global catalog do not go through the deletion process. They are immediately removed from the database and any references to them are unaffected.

Cross Domain References and the Infrastructure Master Role

Certain types of groups in an active directory domain can contain accounts from trusted domains. To make sure the names in the group's membership are accurate, the user object's GUID is referenced in the membership of the group. When Active Directory Tools displays these groups with users from foreign domains, they must be able to display the accurate and current name of the foreign user without relying on immediate contact with a domain controller for the foreign domain or a global catalog.

Active Directory uses a phantom object for cross-domain group-to-user references. This phantom object is a special kind of object that cannot be viewed through any LDAP interface.

Phantom records contain a minimal amount of information to allow a domain controller to refer to the location in which the original object exists. The index of phantom objects contains the following information about the cross-referenced object:
  • Distinguished Name of the Object
  • Object GUID
  • Object SID
During the addition of a member from a different domain to a local user group, the local domain controller that is performing the addition to the group creates the phantom object for the remote user.

If you change the foreign user's name or delete the foreign user, the phantoms must be updated or removed in the group's domain from every domain controller in the domain. The domain controller holding the infrastructure master (IM) role for the group's domain handles any updates to the phantom objects.

You cannot view these phantom objects through any LDAP or ADSI interface.

Phantom Update and Cleanup Processes

If the object to which a phantom object refers has been deleted, the phantom object must be removed from the local domain (cleaned up). A phantom object must also be updated if the name of the original object changes so that the group membership list for the group has an accurate listing. The domain controller holding the IM role in a domain handles both of these operations for its domain.

The IM compares the information about the phantom objects against the latest versions on a global catalog server and makes changes to the phantoms as needed. The interval can be customized by adding the Days per database phantom scan registry entry to the HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\NTDS\Parameters registry subkey. To make this change, note the following:
  • Registry entry: Days per database phantom scan
  • Type: DWORD
  • Default value: 2
  • Function: Specifies the interval in days that the IM compares the phantom objects against the latest versions on a global catalog server.
Note The minimum DWORD value is 1 day. After the IM determines that the original object that the phantom object refers to has changed or been deleted:
  • The IM creates an infrastructureUpdate object in the CN=Infrastructure,DC=DomainName,DC=. container and immediately deletes it.
  • This (tombstone) object is replicated by special proxy to the other domain controllers in the domain that are not global catalog servers.

    If the original object is renamed, the value in the DNReferenceUpdate attribute of the infrastructureUpdate contains the new name. If the original object was deleted, the deleted objects dn is changed so that (esc)DEL:GUID is appended to the original dn.
  • The domain controllers then take the information in the infrastructureUpdate objects and apply the changes to the local copies of their phantom objects accordingly.

    If the original object has been deleted, the receiving domain controllers delete the local phantom object and remove the corresponding attribute that references it (such as the member attribute on a group).
NOTE: Global catalog servers in the group's domain receive the special proxy replication for the objects in the CN=Infrastructure,DC=DomainName,DC=. container, but they ignore them because a read only copy of the object itself is already instantiated in the local database.

Global Catalog and Infrastructure Master Role Conflict

If the IM Flexible Single Master Operation (FSMO) role holder is also a global catalog server, the phantom indexes are never created or updated on that domain controller. This behavior occurs because a global catalog server contains a partial replica of every object in Active Directory. The IM does not store phantom versions of the foreign objects because it already has a partial replica of the object in the local global catalog.

For this process to work properly in a multi-domain environment, the infrastructure FSMO role holder cannot be a global catalog server. Note that the first domain in the forest holds all five FSMO roles, and is also a global catalog. Because of this, you must transfer either role to another computer as soon as another domain controller is installed in the domain if you plan to have multiple domains.

If the infrastructure FSMO role and global catalog role reside on the same domain controller, you continually receive event ID 1419 in the directory services event log. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

251095 Event ID 1419 generated on a domain controller

For more information about FSMO role placement in the domain and how to transfer a FSMO role to another domain controller, click the following article numbers to view the articles in the Microsoft Knowledge Base:

223346 FSMO placement and optimization on Active Directory domain controllers

223787 Flexible Single Master Operation transfer and seizure process


Modification Type:MajorLast Reviewed:8/14/2006
Keywords:kbinfo KB248047