Printer name is invalid
Mike Black
mblack at csihq.com
Wed Jul 8 14:37:12 GMT 1998
I'm running the latest (as of Jul 7) cvs distribution and now I can't
connect to my printers any more. All printer names return "Printer name is
invalid" when using the Add Printer Wizard. I CAN do a "net use lptx:
\\server\printer". Also, existing connections work just fine (but if you
drop a connection you can't reestablish it).
The behaviour appears to be that an NT Server requests "\pipe\spoolss" which
is not a currently offered service, then requests printer status (lpq
returns 0).
Here's a level 3 debug of an attempt to connect to "lexmark". For reference
the lpq command returns "no entries" from the command line:
Initialised IPC area of size 102400
1998/07/08 09:42:27 changed root to /
open_oplock_ipc: opening loopback UDP socket.
bind succeeded on port 0
open_oplock ipc: pid = 16699, oplock_port = 4629
priming nmbd
sending a packet of len 1 to (127.0.0.1) on port 137 of type DGRAM
1998/07/08 09:42:27 Transaction 0 of length 72
netbios connect: name1=PICARD name2=MBLACK
Trying username mblacK
1998/07/08 09:42:27 Transaction 1 of length 174
switch message SMBnegprot (pid 16699)
Requested protocol [PC NETWORK PROGRAM 1.0]
Requested protocol [XENIX CORE]
Requested protocol [MICROSOFT NETWORKS 1.03]
Requested protocol [LANMAN1.0]
Requested protocol [Windows for Workgroups 3.1a]
Requested protocol [LM1.2X002]
Requested protocol [LANMAN2.1]
Requested protocol [NT LM 0.12]
Selected protocol NT LM 0.12
1998/07/08 09:42:27 Transaction 2 of length 190
switch message SMBsesssetupX (pid 16699)
Domain=[CSI_MELB] NativeOS=[Windows NT 1381] NativeLanMan=[]
sesssetupX:name=[mike]
adding home directory mike at /home/mike
mike is in 8 groups
105 2 100 102 104 107 108 109
uid 1177 registered to name mike
Clearing default real name
Chained message
switch message SMBtconX (pid 16699)
Allowed connection from mblack.csihq.com (204.17.222.50) to IPC$
Trying username ipc$
ACCEPTED: validated uid ok as non-guest
found free connection number 110
Connect path is /tmp
chdir to /tmp
chdir to /usr/local/samba/var
1998/07/08 09:42:27 mblack (204.17.222.50) connect to service IPC$ as user
mike (uid=1177,gid=105) (pid 16699)
1998/07/08 09:42:27 tconX service=ipc$ user=mike cnum=110
1998/07/08 09:42:27 Transaction 3 of length 83
switch message SMBopenX (pid 16699)
chdir to /tmp
1998/07/08 09:42:27 error packet at line 78 cmd=45 (SMBopenX) eclass=2
ecode=4
1998/07/08 09:42:27 Transaction 4 of length 108
switch message SMBtrans (pid 16699)
trans <\PIPE\LANMAN> data=0 params=24 setup=0
named pipe command on <LANMAN> name
Got API command 70 of form <zWrLh> <B13>
(tdscnt=0,tpscnt=24,mdrcnt=0,mprcnt=6)
Doing DosPrintQGetInfo
PrintQueue uLevel=0 name=lexmark
Running the command `/usr/bin/lpq -PLEXMARK' gave 0
1998/07/08 09:42:27 Transaction 5 of length 82
switch message SMBopenX (pid 16699)
Known pipe srvsvc opening.
1998/07/08 09:42:27 Transaction 6 of length 82
switch message SMBtrans (pid 16699)
trans <\PIPE\> data=0 params=2 setup=2
named pipe command on <> name
Got API command 0x1 on pipe "srvsvc" (pnum
801)(tdscnt=0,tpscnt=2,mdrcnt=0,mprcnt=0,cnum=110,vuid=100)
1998/07/08 09:42:27 Setting pipe device state=4300 on pipe (name=srvsvc
cnum=110)
1998/07/08 09:42:27 Transaction 7 of length 152
switch message SMBtrans (pid 16699)
trans <\PIPE\> data=72 params=0 setup=2
named pipe command on <> name
Got API command 0x26 on pipe "srvsvc" (pnum
801)(tdscnt=72,tpscnt=0,mdrcnt=1024,mprcnt=0,cnum=110,vuid=100)
api_pipe_bind_req: \PIPE\srvsvc -> \PIPE\ntsvcs
1998/07/08 09:42:27 Transaction 8 of length 144
switch message SMBtrans (pid 16699)
trans <\PIPE\> data=64 params=0 setup=2
named pipe command on <> name
Got API command 0x26 on pipe "srvsvc" (pnum
801)(tdscnt=64,tpscnt=0,mdrcnt=1024,mprcnt=0,cnum=110,vuid=100)
Doing \PIPE\srvsvc
api_rpc_command: SRV_NET_SRV_GET_INFO
1998/07/08 09:42:27 Transaction 9 of length 46
switch message SMBclose (pid 16699)
1998/07/08 09:42:27 Closed pipe name srvsvc pnum=801 cnum=110
Here's a tcpdump also:
Script started on Wed Jul 8 09:45:06 1998
[1mroot[m@picard:/usr/local/samba/var# tcpdump -s 2000 host mblack |
gre[K[K[K[K | grep -v telnet
tcpdump: listening on eth0
09:45:22.686108 mblack.csihq.com.ntp > picard.csihq.com.ntp: v1 client strat
0 poll 0 prec 0
09:45:22.686298 picard.csihq.com.ntp > mblack.csihq.com.ntp: v1 server strat
0 poll 4 prec -17
09:45:23.669661 mblack.csihq.com.4001 > picard.csihq.com.netbios-ssn: P
788601967:788602050(83) ack 236963865 win 7350
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=79
SMB PACKET: SMBopenX (REQUEST)
SMB Command = 0x2D
Error class = 0x0
Error code = 0
Flags1 = 0x18
Flags2 = 0x3
Tree ID = 110
Proc ID = 51966
UID = 100
MID = 960
Word Count = 15
smbvwv[]=
Com2=0xFF
Off2=0
Flags=0x1
Mode=0x42
SearchAttrib=HIDDEN SYSTEM DIR
Attrib=
Time=Fri Jan 20 06:45:06 2012
OFun=0x1
Size=0
TimeOut=-1
Res=0x0
smbbuf[]=
Path=\pipe\spoolss
(DF)
09:45:23.670195 picard.csihq.com.netbios-ssn > mblack.csihq.com.4001: P
1:40(39) ack 83 win 32120
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=35
SMB PACKET: SMBopenX (REPLY)
SMB Command = 0x2D
Error class = 0x2
Error code = 4
Flags1 = 0x88
Flags2 = 0x1
Tree ID = 110
Proc ID = 51966
UID = 100
MID = 960
Word Count = 0
SMBError = ERRSRV - ERRaccess (The requester does not have the necessary
access rights within the specified context for the requested function.
The context is defined by the TID or the UID.)
smbvwv[]=
Com2=smb_bcc=0
(DF)
09:45:23.676166 mblack.csihq.com.4001 > picard.csihq.com.netbios-ssn: P
83:191(108) ack 40 win 7311
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=104
SMB PACKET: SMBtrans (REQUEST)
SMB Command = 0x25
Error class = 0x0
Error code = 0
Flags1 = 0x18
Flags2 = 0x3
Tree ID = 110
Proc ID = 51966
UID = 100
MID = 1024
Word Count = 14
TotParamCnt=24
TotDataCnt=0
MaxParmCnt=6
MaxDataCnt=0
MaxSCnt=0
TransFlags=0x0
Res1=0x1388
Res2=0x0
Res3=0x0
ParamCnt=24
ParamOff=80
DataCnt=0
DataOff=0
SUCnt=0
Name=\PIPE\LANMAN
Data: (4 bytes)
[000] 00 73 00 00 .s..
Command=0x46
Str1=zWrLh
Str2=B13
Data: (12 bytes)
[000] 6C 65 78 6D 61 72 6B 00 00 00 00 00 lexmark. ....
(DF)
09:45:23.690806 picard.csihq.com.netbios-ssn > mblack.csihq.com.4001: . ack
191 win 32120 (DF)
09:45:23.748414 picard.csihq.com.netbios-ssn > mblack.csihq.com.4001: P
40:107(67) ack 191 win 32120
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=63
SMB PACKET: SMBtrans (REPLY)
SMB Command = 0x25
Error class = 0x0
Error code = 0
Flags1 = 0x88
Flags2 = 0x1
Tree ID = 110
Proc ID = 51966
UID = 100
MID = 1024
Word Count = 10
TotParamCnt=6
TotDataCnt=0
Res1=0
ParamCnt=6
ParamOff=55
Res2=0
DataCnt=0
DataOff=63
Res3=0
Lsetup=0
Unknown Data: (2 bytes)
[000] EA 00 ..
Param Data: (6 bytes)
[000] EA 00 00 00 0D 00 ......
(DF)
09:45:23.752403 mblack.csihq.com.4001 > picard.csihq.com.netbios-ssn: P
191:273(82) ack 107 win 8760
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=78
SMB PACKET: SMBopenX (REQUEST)
SMB Command = 0x2D
Error class = 0x0
Error code = 0
Flags1 = 0x18
Flags2 = 0x3
Tree ID = 110
Proc ID = 51966
UID = 100
MID = 1088
Word Count = 15
smbvwv[]=
Com2=0xFF
Off2=0
Flags=0x1
Mode=0x42
SearchAttrib=HIDDEN SYSTEM DIR
Attrib=
Time=Fri Jan 20 06:45:06 2012
OFun=0x1
Size=0
TimeOut=-1
Res=0x0
smbbuf[]=
Path=\PIPE\srvsvc
(DF)
09:45:23.763266 picard.csihq.com.netbios-ssn > mblack.csihq.com.4001: P
107:176(69) ack 273 win 32120
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=65
SMB PACKET: SMBopenX (REPLY)
SMB Command = 0x2D
Error class = 0x0
Error code = 0
Flags1 = 0x88
Flags2 = 0x1
Tree ID = 110
Proc ID = 51966
UID = 100
MID = 1088
Word Count = 15
smbvwv[]=
Com2=0xFF
Off2=0
Handle=2049
Attrib=
Time=NULL
Size=0
Access=0x0
Type=0x2
State=0xC700
Action=0x0
FileID=0x0
Res=0x0
smb_bcc=0
(DF)
09:45:23.764944 mblack.csihq.com.4001 > picard.csihq.com.netbios-ssn: P
273:355(82) ack 176 win 8691
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=78
SMB PACKET: SMBtrans (REQUEST)
SMB Command = 0x25
Error class = 0x0
Error code = 0
Flags1 = 0x18
Flags2 = 0x3
Tree ID = 110
Proc ID = 51966
UID = 100
MID = 1152
Word Count = 16
TotParamCnt=2
TotDataCnt=0
MaxParmCnt=0
MaxDataCnt=0
MaxSCnt=0
TransFlags=0x0
Res1=0x0
Res2=0x0
Res3=0x0
ParamCnt=2
ParamOff=76
DataCnt=0
DataOff=0
SUCnt=2
Data: (4 bytes)
[000] 01 00 01 08 ....
Name=\PIPE\
Data: (2 bytes)
[000] 73 76 sv
Param Data: (2 bytes)
[000] 00 43 .C
(DF)
09:45:23.778964 picard.csihq.com.netbios-ssn > mblack.csihq.com.4001: P
176:235(59) ack 355 win 32120
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=55
SMB PACKET: SMBtrans (REPLY)
SMB Command = 0x25
Error class = 0x0
Error code = 0
Flags1 = 0x88
Flags2 = 0x1
Tree ID = 110
Proc ID = 51966
UID = 100
MID = 1152
Word Count = 10
TotParamCnt=0
TotDataCnt=0
Res1=0
ParamCnt=0
ParamOff=55
Res2=0
DataCnt=0
DataOff=55
Res3=0
Lsetup=0
(DF)
09:45:23.781685 mblack.csihq.com.4001 > picard.csihq.com.netbios-ssn: P
355:507(152) ack 235 win 8632
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=148
SMB PACKET: SMBtrans (REQUEST)
SMB Command = 0x25
Error class = 0x0
Error code = 0
Flags1 = 0x18
Flags2 = 0x3
Tree ID = 110
Proc ID = 51966
UID = 100
MID = 1216
Word Count = 16
TotParamCnt=0
TotDataCnt=72
MaxParmCnt=0
MaxDataCnt=1024
MaxSCnt=0
TransFlags=0x0
Res1=0x0
Res2=0x0
Res3=0x0
ParamCnt=0
ParamOff=76
DataCnt=72
DataOff=76
SUCnt=2
Data: (4 bytes)
[000] 26 00 01 08 &...
Name=\PIPE\
Data: (2 bytes)
[000] 4E 00 N.
Data Data: (72 bytes)
[000] 05 00 0B 00 10 00 00 00 48 00 00 00 01 00 00 00 ........ H.......
[010] 30 16 30 16 00 00 00 00 01 00 00 00 00 00 01 00 0.0..... ........
[020] C8 4F 32 4B 70 16 D3 01 12 78 5A 47 BF 6E E1 88 .O2Kp... .xZG.n..
[030] 03 00 00 00 04 5D 88 8A EB 1C C9 11 9F E8 08 00 .....].. ........
[040] 2B 10 48 60 02 00 00 00 +.H`....
(DF)
09:45:23.794747 picard.csihq.com.netbios-ssn > mblack.csihq.com.4001: P
235:362(127) ack 507 win 32120
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=123
SMB PACKET: SMBtrans (REPLY)
SMB Command = 0x25
Error class = 0x0
Error code = 0
Flags1 = 0x88
Flags2 = 0x1
Tree ID = 110
Proc ID = 51966
UID = 100
MID = 1216
Word Count = 10
TotParamCnt=0
TotDataCnt=68
Res1=0
ParamCnt=0
ParamOff=55
Res2=0
DataCnt=68
DataOff=55
Res3=0
Lsetup=0
Data Data: (68 bytes)
[000] 05 00 0C 03 10 00 00 00 34 00 00 00 01 00 00 00 ........ 4.......
[010] 30 16 30 16 00 00 00 00 0D 00 5C 50 49 50 45 5C 0.0..... ..\PIPE\
[020] 6E 74 73 76 63 73 00 00 01 00 00 00 00 00 00 00 ntsvcs.. ........
[030] 04 5D 88 8A EB 1C C9 11 9F E8 08 00 2B 10 48 60 .]...... ....+.H`
[040] 02 00 00 00 ....
(DF)
09:45:23.811132 mblack.csihq.com.4001 > picard.csihq.com.netbios-ssn: P
507:651(144) ack 362 win 8505
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=140
SMB PACKET: SMBtrans (REQUEST)
SMB Command = 0x25
Error class = 0x0
Error code = 0
Flags1 = 0x18
Flags2 = 0x3
Tree ID = 110
Proc ID = 51966
UID = 100
MID = 1280
Word Count = 16
TotParamCnt=0
TotDataCnt=64
MaxParmCnt=0
MaxDataCnt=1024
MaxSCnt=0
TransFlags=0x0
Res1=0x0
Res2=0x0
Res3=0x0
ParamCnt=0
ParamOff=76
DataCnt=64
DataOff=76
SUCnt=2
Data: (4 bytes)
[000] 26 00 01 08 &...
Name=\PIPE\
Data: (2 bytes)
[000] 73 76 sv
Data Data: (64 bytes)
[000] 05 00 00 03 10 00 00 00 40 00 00 00 01 00 00 00 ........ @.......
[010] 28 00 00 00 00 00 15 00 6C F3 D5 02 09 00 00 00 (....... l.......
[020] 00 00 00 00 09 00 00 00 5C 00 5C 00 70 00 69 00 ........ \.\.p.i.
[030] 63 00 61 00 72 00 64 00 00 00 C9 11 65 00 00 00 c.a.r.d. ....e...
(DF)
09:45:23.820293 picard.csihq.com.netbios-ssn > mblack.csihq.com.4001: P
362:565(203) ack 651 win 32120
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=199
SMB PACKET: SMBtrans (REPLY)
SMB Command = 0x25
Error class = 0x0
Error code = 0
Flags1 = 0x88
Flags2 = 0x1
Tree ID = 110
Proc ID = 51966
UID = 100
MID = 1280
Word Count = 10
TotParamCnt=0
TotDataCnt=144
Res1=0
ParamCnt=0
ParamOff=55
Res2=0
DataCnt=144
DataOff=55
Res3=0
Lsetup=0
Data Data: (144 bytes)
[000] 05 00 02 03 10 00 00 00 90 00 00 00 01 00 00 00 ........ ........
[010] 78 00 00 00 00 00 00 00 65 00 00 00 01 00 00 00 x....... e.......
[020] F4 01 00 00 01 00 00 00 05 00 00 00 04 00 00 00 ........ ........
[030] 0B 10 04 00 01 00 00 00 07 00 00 00 00 00 00 00 ........ ........
[040] 07 00 00 00 50 00 49 00 43 00 41 00 52 00 44 00 ....P.I. C.A.R.D.
[050] 00 00 00 00 16 00 00 00 00 00 00 00 16 00 00 00 ........ ........
[060] 53 00 61 00 6D 00 62 00 61 00 20 00 31 00 2E 00 S.a.m.b. a. .1...
[070] 39 00 2E 00 31 00 39 00 2D 00 70 00 72 00 65 00 9...1.9. -.p.r.e.
[080] 61 00 6C 00 70 00 68 00 61 00 00 00 00 00 00 00 a.l.p.h. a.......
(DF)
09:45:23.822614 mblack.csihq.com.4001 > picard.csihq.com.netbios-ssn: P
651:697(46) ack 565 win 8302
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=42
SMB PACKET: SMBclose (REQUEST)
SMB Command = 0x4
Error class = 0x0
Error code = 0
Flags1 = 0x18
Flags2 = 0x3
Tree ID = 110
Proc ID = 51966
UID = 100
MID = 1344
Word Count = 3
smbvwv[]=
Handle=2049
Time=NULL
smb_bcc=0
(DF)
09:45:23.833226 picard.csihq.com.netbios-ssn > mblack.csihq.com.4001: P
565:604(39) ack 697 win 32120
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=35
SMB PACKET: SMBclose (REPLY)
SMB Command = 0x4
Error class = 0x0
Error code = 0
Flags1 = 0x88
Flags2 = 0x1
Tree ID = 110
Proc ID = 51966
UID = 100
MID = 1344
Word Count = 0
smb_bcc=0
________________________________________________________
Mike Black mblack at csihq.com
407-676-2923, x203 FAX 407-676-2355
Computer Science Innovations, Inc. http://www.csihq.com
More information about the samba-ntdom
mailing list