18.104.22.168 A Local Client Application Initiates a Server Session
The local client application provides:
The name of the server.
Credentials to be used to connect to the server.
The client MUST first connect to the server as specified in section 22.214.171.124.1.
If the negotiated protocol dialect is covered in [MS-CIFS] or in [MS-SMB], the client MUST:
Authenticate the user by invoking the processing logic specified in section 126.96.36.199.4, providing the credentials supplied by the caller; next, the client MUST connect to the IPC$ share by invoking the processing logic specified in section 188.8.131.52.5
Any error incurred during the processing of the preceding steps MUST be returned to the caller.
Upon successful completion, a new ClientGenericContext structure MUST be initialized as follows and returned to the caller.
The ClientGenericContext.ProtocolDialect field MUST be set to an implementation-specific identifier indicating the protocol (either that specified by [MS-CIFS] or by [MS-SMB2]).
The ClientGenericContext.ProtocolSpecificOpen field MUST be set to the protocol-specific Client.Session obtained by the processing logic specified in section 184.108.40.206.4.