3.1.4.40 NetrDfsModifyPrefix (Opnum 50)
The NetrDfsModifyPrefix method changes the path that corresponds to a DFS link on the server. An implementation MAY<152> choose to support this method.
-
NET_API_STATUS NetrDfsModifyPrefix( [in, string, unique] SRVSVC_HANDLE ServerName, [in] GUID* Uid, [in, string] WCHAR* Prefix );
ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server. The client MUST map this structure to an RPC binding handle (see [C706] sections 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
Uid: Specifies the GUID that corresponds to the DFS link that needs to be changed. This GUID MUST be obtained by using the NetrDfsGetInfo (Opnum 4) method, specified in [MS-DFSNM] section 3.1.4.1.6.
Prefix: A pointer to a null-terminated UTF-16 string that specifies the path of the updated DFS link.
Return Values: The method returns 0x00000000 (NERR_Success) to indicate success; otherwise, it returns a nonzero error code. The method can take any specific error code value, as specified in [MS-ERREF] section 2.2.
In response to a NetrDfsModifyPrefix message, the server SHOULD<153> choose to perform no processing and return an implementation-specific error code when this method is called. If the server supports DFS, the server MAY update the path for a DFS link. This message is typically used by domain controllers (DCs) to fix a bad prefix match.
The Uid parameter specifies the GUID that corresponds to the DFS link that needs to be changed.
The Prefix parameter specifies the path of the updated DFS link. The string MUST be in one of two forms:
The first form is \Dfsname\sharename\path_to_link, where Dfsname is the name of the storage server that hosts the root of a standalone DFS implementation; sharename is the name of a shared folder that is published on the DFS host server; and path_to_link specifies the path on the physical network share.
The second form is \DomainName\DomDfsname\path_to_link, where DomainName is the name of the domain that hosts the DFS root; DomDfsname is the name of the root of a domain-based DFS implementation that is published in the directory service of the domain; and path_to_link specifies the path on the physical network share.
The server MAY<154> enforce security measures to verify that the caller has the required permissions to execute this call. If the server enforces these security measures and the caller does not have the required credentials, the server SHOULD<155> fail the call.