4.7 Enumerating DFS Links in a Domain-Based DFS Namespace
The following example describes the sequence of an interactive administration application that enumerates all domain-based DFS namespaces in a domain and all DFS links of a domain-based DFS namespace.
To enumerate all of the domain-based DFS namespaces in the dfsn-dev domain, the administration application issues the NetrDfsEnumExRPC method with the DfsEntryPath parameter
\\dfsn-devand Level parameter 200. This method is issued to the DC.
The DC returns two domain-based DFS namespaces in the domain:
The user decides to view information about the domain-based DFS namespace
\\dfsn-dev\testroot1. Before the administering application can issue the RPC method to obtain information about that DFS namespace, it must determine which DFS root target it will issue the RPC method to. This is done by issuing a DFS root referral request to the DC, as specified in [MSDFS].
The DC responds to the DFS root referral request with the two DFS root targets:
The NetrDfsEnumEx RPC method to obtain information about the DFS namespace
\\dfsn-dev\testroot1is then issued to the root target
The root target returns the DFS root and one DFS link in the domain-based DFS namespace.
Figure 8: Enumerating DFS links in a domainv1-based DFS namespace