Configuring and Managing MPE/iX Internet Services: HP 3000 MPE/iX Computer Systems > Chapter 7 Samba/iX ServicesOverview of Samba/iX |
|
Samba/iX is a suite of programs which allow an HP 3000 running MPE/iX operating system to provide service using a Microsoft networking protocol called Server Message Block (SMB). This product allows implementation of interoperability features allowing the system to act as a file and print server to PC clients running the following operation systems:
Samba is an application of choice allowing interoperability between Windows and UNIX-like systems. It is a group of programs that allows a UNIX host to act as a fileserver for DOS and Windows platforms and also provides print services for them. It is freely available under the GNU Public License. Samba allows UNIX-like machines to be integrated into a Windows network without installing any additional software on the Windows machines. Many different platforms run Samba successfully; and there are nearly forty different operating systems which support Samba. As more of our customers implement and configure networking services in a heterogeneous environment of MPE, UNIX, and Windows NT servers, along with Netware, Windows, and NT workstation clients, the need for knowledge in the area of interoperability becomes a must for our customers. Beginning with MPE/iX release 6.0, Samba/iX is available on MPE/iX shell operating system. It allows clients to access a server's filespace and printers via the SMB protocol. Samba/iX is the result of porting Samba to MPE/iX under POSIX environment. It is a solution for those wishing to access HP 3000 disk storage and printers (both networked and spooled from MPE/iX) from common PC client operating systems like Windows 95 and NT Workstation.Samba/iX allows access to these disk and printer resources of MPE/iX, by providing standard SMB file and printer services that are accessible from PC clients and their applications. It is available to the HP 3000 users with the MPE/iX 6.0 release. A general UNIX program that is part of the Samba suite has also been ported to MPE/iX shell operating system. This program allows MPE users to use an FTP-like interface to access filespace and printers on any other SMB (Server Message Block) servers. This capability enables these operating systems to act like a LAN server or Windows NT server. See Figure 7-1 “HP 3000 Interoperating With Microsoft Platforms” for HP 3000 interoperating with the Microsoft platforms. There are many benefits in having an MPE/iX and Samba/iX environment, some of which are listed here:
Table 7-1 “Major Components” shows the major components of the Samba/iX suite. Table 7-1 Major Components
The Samba/iX product contains:
SMB, which stands for Server Message Block, is a protocol for sharing files, printers, serial ports, and communication abstractions, such as named pipes and mail slots, between computers. SMB is a request/response protocol and it is implemented on top of the NetBIOS API, see Figure 7-2 “SMB Protocol”. It plays the role of session, presentation, and a part of application layer of the OSI stack. SMB can be used over TCP/IP, NetBEUI, and IPX/SPX. In the case of TCP/IP or NetBEUI, the NetBIOS API is being used. Samba/iX uses SMB over TCP/IP. The SMB messages can be categorized into four types of messages: session control, file, printer, and message. Session control messages start, authenticate, and terminate sessions. File command controls file access and printer command controls printer access. Message commands allow an application to send messages to or receive messages from another host. (For example, WinPopup messages). NetBIOS names are up to 15 characters long, and are usually the name of the computer that is running NetBIOS. Figure 7-3 “SMB NegProt Connection” demonstrates the process of connecting to a file space service. The SMB Negotiat Protocol command (NegProt) is used to decide on a protocol extension to be used with the server. The client sends a SMB NegProt to the server. This will list the protocol dialects/protocol extensions that it understands. The server responds with the index of the dialect that it wants to use, or 0xFFFF if none of the dialects were acceptable.Dialects newer than the Core and CorePlus protocols supply information in the NegProt response to indicate their capabilities such as max buffer size. The six important protocol extensions of SMB are Core, CorePlus, LAN Manager 1.0, LM 2.0, and NT LM 0.12 and CIFS 1.0. Once a protocol has been established, the client can proceed to logon to the server. Client now sends a SMB Session Setup command (SesssetupX), see Figure 7-4 “SMB Sesssetup Connection”. The response indicates whether the username password pair is valid, and if so, can provide additional information. One of the very important aspects of the response is a User ID value that must be submitted with all the subsequent SMBs sent to the server. This is used for user authentication. After the client has logged in, then proceeds to connect to the file tree by sending a SMB Tree Connect command (TconX) to the server, see Figure 7-5 “SMB TconX Connection”. Here TconX stands for tree connect. The client sends a Tcon or SMB TconX specifying the network name of the share that they wish to connect to, and if all is well, the server responds with a TID that the client will use in all future SMBs relating to that share. After connecting to a tree, the client can now open a file with an open SMB, followed by reading it with read SMBs, writing it with write SMBs, and closing it with close SMBs. |