4.4 Creating a New Domainv2-Based DFS Namespace

The following example describes the steps used to create a new domainv2-based DFS namespace.

  1. A client determines whether a new domainv2-based DFS namespace is being created or a new DFS root target is being added to an existing domainv2-based DFS namespace, by issuing an LDAP search for the object corresponding to the domainv2-based DFS namespace. The following illustration shows the LDAP search parameters that do this.

  2. Because the domainv2-based DFS namespace does not already exist, the DC fails the LDAP search with LDAP_NO_SUCH_OBJECT.

  3. The client creates an object for the new domainv2-based DFS namespace.

  4. Object creation is successful.

  5. The client updates the ACL on the object to permit the new DFS root target CFS-41X-2C02 to update the object.

  6. The ACL change on the object is successful.

  7. The client issues a NetrDfsAddRootTarget method to the DFS root target server.

  8. The DFS root target server creates a new DFS namespace LDAP entry with the DFS namespace anchor LDAP entry as its parent. The server also creates the DFS metadata required for the new domainv2-based DFS namespace and updates the DFS metadata in the object corresponding to the DFS namespace. This appears as an LDAP modify operation to the PDC for the domain. The following illustration shows the LDAP modify parameters that do this.

  9. The DFS metadata write is successful.

  10. The DFS root target completes the NetrDfsAddRootTarget method to the client.

The following illustration shows this sequence of events.

Creating a new domainv2-based DFS namespace

Figure 5: Creating a new domainv2-based DFS namespace