4.1 Creating a New Domainv1-Based DFS Namespace
The following example describes the steps used to create a new domainv1-based DFS namespace. The namespace name is testroot1, to be created on a server named CFS-41X-2C02 within the dfsn-dev.microsoft.com domain.
A client determines whether a new domainv1-based DFS namespace is being created, or a new DFS root target is being added to an existing domain-based DFS namespace, by issuing an LDAP search for the object corresponding to the domainv1-based DFS namespace. The following illustration shows the LDAP search parameters that do this.
Because the domainv1-based DFS namespace does not already exist, the DC fails the LDAP search with LDAP_NO_SUCH_OBJECT.
The client creates an object for the new domainv1-based DFS namespace.
Object creation is successful.
The client updates the ACL on the object to permit the new DFS root target to update the object.
The ACL change on the object is successful.
The client issues a NetrDfsAddFtRoot method to the DFS root target server.
The DFS root target creates the DFS metadata required for the new domainv1-based DFS namespace and updates the DFS metadata in the object corresponding to the DFS namespace. This is shown as an LDAP modify operation to the PDC for the domain. The following illustration shows the LDAP modify parameters that do this.
The DFS metadata write is successful.
The DFS root target completes the NetrDfsAddFtRoot method to the client.
The following illustration shows the sequence of events.

Figure 2: Creating a new domainv1-based DFS namespace