Intel Printstation

Samuel Liddicott sam at campbellsci.co.uk
Thu Aug 26 11:35:50 GMT 1999


[Was real pizza]

Just to keep all informed and try and drum up some advice;

The intel PrintStation which supports SMB over TCP/IP has these requirements
to work with samba:

The remote filename as written to by Samba must be:

\DEV\LPT1

and not stdin-1234 etc.

I don't know if this filename is calculated from any values the printstation
gives at connect time; but here is some useful dumps (the final line:
ServiceType=LPT1:  may be significant):

14:22:12.676939 sam-pc.ethernet.1027 > ps656ad8.ethernet.netbios-ssn: P
231:387(
156) ack 89 win 8672
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=152 (0x98)

SMB PACKET: SMBsesssetupX (REQUEST)
SMB Command   =  0x73
Error class   =  0x0
Error code    =  0 (0x0)
Flags1        =  0x10
Flags2        =  0x0
Tree ID       =  0 (0x0)
Proc ID       =  4637 (0x121d)
UID           =  1 (0x1)
MID           =  7169 (0x1c01)
Word Count    =  10 (0xa)
Com2=0x75
Off2=114 (0x72)
BufSize=2920 (0xb68)
MpxMax=50 (0x32)
VcNum=0 (0x0)
SessionKey=0x0
PassLen=24 (0x18)
CryptLen=0 (0x0)
CryptOff=0 (0x0)
Pass&Name=
[000] 30 82 CC 54 65 D6 00 3E  35 1D AB 48 AA D5 2E 0A  0..Te..> 5..H....
[010] 01 99 51 F3 76 F4 E1 F3  53 41 4D 00 53 45 52 56  ..Q.v... SAM.SERV
[020] 45 52 00 57 69 6E 64 6F  77 73 20 34 2E 30 00 57  ER.Windo ws 4.0.W
[030] 69 6E 64 6F 77 73 20 34  2E 30 00                 indows 4 .0.

SMB PACKET: SMBtconX (REQUEST) (CHAINED)
smbvwv[]=
Com2=0xFF
Off2=0 (0x0)
Flags=0x2
PassLen=1 (0x1)
Passwd&Path&Device=
smb_bcc=27
smb_buf[]=
[000] 00 5C 5C 50 53 36 35 36  41 44 38 5C 50 52 49 4E  .\\PS656 AD8\PRIN
[010] 54 45 52 31 00 4C 50 54  31 3A 00                 TER1.LPT 1:.


 (DF)
14:22:12.676939 ps656ad8.ethernet.netbios-ssn > sam-pc.ethernet.1027: P
89:175(8
6) ack 387 win 5454
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=82 (0x52)

SMB PACKET: SMBsesssetupX (REPLY)
SMB Command   =  0x73
Error class   =  0x0
Error code    =  0 (0x0)
Flags1        =  0x90
Flags2        =  0x0
Tree ID       =  0 (0x0)
Proc ID       =  4637 (0x121d)
UID           =  243 (0xf3)
MID           =  7169 (0x1c01)
Word Count    =  3 (0x3)
Com2=0x75
Off2=67 (0x43)
Action=0x1
[000] 43 4F 53 20 32 2E 33 30  00 50 72 69 6E 74 53 74  COS 2.30 .PrintSt
[010] 61 74 69 6F 6E 20 33 2E  31 00                    ation 3. 1.

SMB PACKET: SMBtconX (REPLY) (CHAINED)
smbvwv[]=
Com2=0xFF
Off2=82 (0x52)
Data: (2 bytes)
[000] 01 00                                             ..
smbbuf[]=
ServiceType=LPT1:


So.... is this hinting to samba that "\DEV\LPT1" should be the name of the
remote file?

Also samba uses SMBWriteX which seems not to be correctly implemented in the
PrintStation.  This info has been passed on to intel engineers who may or
may not care; but is there any way (at least for test purposes) to get Samba
to do SMBWrite instead of SMBWriteX ?

Is there and old version of Samba that does this that I can try?

Sam



More information about the samba-ntdom mailing list