126.96.36.199 Application Requests Querying DFS Referrals
The application provides the following:
ServerName: The name of the server from which to query referrals.
UserCredentials: An opaque implementation-specific entity that identifies the credentials to be used when authenticating to the remote server.
The maximum response size, in bytes.
An input buffer containing the application-provided REQ_GET_DFS_REFERRAL structure.
The client MUST search for an existing Session and TreeConnect to any share on the server identified by ServerName for the user identified by UserCredentials. If no Session and TreeConnect are found, the client MUST establish a new Session and TreeConnect to IPC$ on the target server, as specified in section 188.8.131.52 using the supplied ServerName and UserCredentials.
The client MUST construct a TRANS2_GET_DFS_REFERRAL Request and MUST set ReferralRequest to the application-provided input buffer.
The client MUST construct a TRANS2_GET_DFS_REFERRAL Request (section 184.108.40.206.1) and MUST set ReferralRequest to the application-provided input buffer. The MaxDataCount field of the SMB_COM_TRANSACTION2 Request (section 220.127.116.11.1) MUST be set to the maximum response size supplied by the caller. The client MUST issue the TRANS2_GET_DFS_REFERRAL Request using the Client.TreeConnect.TreeID of the IPC$ share.