1 This describes how to use smbclient to connect to an OS/2 server.
2 Knowing this allows you to use a OS/2 printer from unix.
4 Author: riiber@oslonett.no
7 How to login to an OS/2 server
8 -------------------------------
10 Sample setup for OS/2 server running LanMan 2.2:
12 OS/2 Server Name : \\OBV11
13 OS/2 User Account : ARNE
15 OS/2 shared service 1 : LASER02
16 OS/2 Shared service 2 : PCPROGS
17 Samba NetBIOS name : KLATREMUS
19 First, the two servers were started with the commands
20 smbd and nmbd -n KLATREMUS.
22 Command to connect to a the shared printer LASER02 on the OS/2 server:
24 smbclient '\\OBV11\LASER02' xxx -n ARNE -U ARNE -P
26 and to connect to the shared drive 'PCPROGS':
28 smbclient '\\OBV11\PCPROGS' xxx -n ARNE -U ARNE
31 If login to the OS/2 server fails:
32 ----------------------------------
34 The remarkable OS/2 server requires NetBIOS name to be equal to User name.
35 This was the only combination of (NetBIOS name, User name) that allowed login.
37 Password xxx must be in upper case, case in user name is unimportant.
39 The OS/2 server responds with "Bad password - name/password pair"
40 if the password is illegal (in lowercase, for example).
42 If correct user name and password, but invalid NetBIOS name is given,
43 it responds with "... SMBtcon failed. ERRDOS - 65".
45 The OS/2 server can disable login from a list of workstations (PCs)
46 corresponding to the NetBIOS name (-n option). I set it up to
47 allow login from any workstation.
51 (I experimented quite a lot with the -U and -n options, printed and browsed
52 the MS SMB protocol docs and the RFC's, then read some comp.protocols.smb,
53 got some tips, tried some "stupid" command line options,
54 and at last I got it working!)