[Samba] PATCH: downloading drivers from Solaris [was Re: So SAMBA no longer ...]

Hansjoerg Maurer Hansjoerg.Maurer at dlr.de
Thu Mar 13 10:02:44 GMT 2003


Hi,

like I have tested, Printer driver download from W2000 works fine know 
(Solaris , samba-2.2.8-pre2)
But I have another Solaris specific problem with W95 drivers (works fine 
under Linux)
The W95 Client opens the addprinterwizzard, when downloading the driver.
Samba reports (see below):
[2003/03/13 10:48:05, 3] smbd/lanman.c:get_printerdrivernumber(836)
  Can't determine number of printer driver files
[2003/03/13 10:48:05, 3] smbd/lanman.c:api_DosPrintQGetInfo(918)
  api_DosPrintQGetInfo: Driver files count: 0
Could that be another Solaris specific issue.

I attached the command, how I added the driver below.
I am using a version of cupsaddsmb , which places the  ":" correctly.

Thank you very much

Hansjörg



[2003/03/13 10:48:05, 3] smbd/lanman.c:api_DosPrintQGetInfo(884)
  api_DosPrintQGetInfo: uLevel=51 name=INSHP4050
[2003/03/13 10:48:05, 3] smbd/process.c:process_smb(876)
  Transaction 13 of length 115
[2003/03/13 10:48:05, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans (pid 4703)
[2003/03/13 10:48:05, 3] smbd/ipc.c:reply_trans(480)
  trans <\PIPE\LANMAN> data=0 params=35 setup=0
[2003/03/13 10:48:05, 3] smbd/ipc.c:named_pipe(334)
  named pipe command on <LANMAN> name
[2003/03/13 10:48:05, 3] smbd/lanman.c:api_reply(3345)
  Got API command 70 of form <zWrLh> <WzzzzzzzzN> 
(tdscnt=0,tpscnt=35,mdrcnt=1024,mprcnt=6)
[2003/03/13 10:48:05, 3] smbd/lanman.c:api_reply(3349)
  Doing DosPrintQGetInfo
[2003/03/13 10:48:05, 3] smbd/lanman.c:api_DosPrintQGetInfo(884)
  api_DosPrintQGetInfo: uLevel=52 name=INSHP4050
[2003/03/13 10:48:05, 3] smbd/lanman.c:get_printerdrivernumber(836)
  Can't determine number of printer driver files
[2003/03/13 10:48:05, 3] smbd/lanman.c:api_DosPrintQGetInfo(918)
  api_DosPrintQGetInfo: Driver files count: 0
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(656)
  printerdriver:inshp4050:
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(657)
  Driver:ADOBEPS4.DRV:
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(658)
  Data File:inshp4050.PPD:
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(659)
  Language Monitor:PSMON.DLL:
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(661)
  lp_driverlocation:\\PRINTSERVER2\print$\WIN40\0:
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(664)
  Data Type:RAW:
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(665)
  Help File:ADOBEPS4.HLP:
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(679)
  fill_printq_info on <inshp4050> gave 0 entries
[2003/03/13 10:48:05, 3] smbd/process.c:process_smb(876)
  Transaction 14 of length 115
[2003/03/13 10:48:05, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans (pid 4703)
[2003/03/13 10:48:05, 3] smbd/ipc.c:reply_trans(480)
  trans <\PIPE\LANMAN> data=0 params=35 setup=0
[2003/03/13 10:48:05, 3] smbd/ipc.c:named_pipe(334)
  named pipe command on <LANMAN> name
[2003/03/13 10:48:05, 3] smbd/lanman.c:api_reply(3345)
  Got API command 70 of form <zWrLh> <WzzzzzzzzN> 
(tdscnt=0,tpscnt=35,mdrcnt=1024,mprcnt=6)
[2003/03/13 10:48:05, 3] smbd/lanman.c:api_reply(3349)
  Doing DosPrintQGetInfo
[2003/03/13 10:48:05, 3] smbd/lanman.c:api_DosPrintQGetInfo(884)
  api_DosPrintQGetInfo: uLevel=52 name=INSHP4050
[2003/03/13 10:48:05, 3] smbd/lanman.c:get_printerdrivernumber(836)
  Can't determine number of printer driver files
[2003/03/13 10:48:05, 3] smbd/lanman.c:api_DosPrintQGetInfo(918)
  api_DosPrintQGetInfo: Driver files count: 0
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(656)
  printerdriver:inshp4050:
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(657)
  Driver:ADOBEPS4.DRV:
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(658)
  Data File:inshp4050.PPD:
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(659)
  Language Monitor:PSMON.DLL:
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(661)
  lp_driverlocation:\\PRINTSERVER2\print$\WIN40\0:
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(664)
  Data Type:RAW:
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(665)
  Help File:ADOBEPS4.HLP:
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(679)
  fill_printq_info on <inshp4050> gave 0 entries
[2003/03/13 10:48:05, 3] smbd/process.c:process_smb(876)
  Transaction 15 of length 115
[2003/03/13 10:48:05, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans (pid 4703)
[2003/03/13 10:48:05, 3] smbd/ipc.c:reply_trans(480)
  trans <\PIPE\LANMAN> data=0 params=35 setup=0
[2003/03/13 10:48:05, 3] smbd/ipc.c:named_pipe(334)
  named pipe command on <LANMAN> name
[2003/03/13 10:48:05, 3] smbd/lanman.c:api_reply(3345)
  Got API command 70 of form <zWrLh> <WzzzzzzzzN> 
(tdscnt=0,tpscnt=35,mdrcnt=1024,mprcnt=6)
[2003/03/13 10:48:05, 3] smbd/lanman.c:api_reply(3349)
  Doing DosPrintQGetInfo
[2003/03/13 10:48:05, 3] smbd/lanman.c:api_DosPrintQGetInfo(884)
  api_DosPrintQGetInfo: uLevel=52 name=INSHP4050
[2003/03/13 10:48:05, 3] smbd/lanman.c:get_printerdrivernumber(836)
  Can't determine number of printer driver files
[2003/03/13 10:48:05, 3] smbd/lanman.c:api_DosPrintQGetInfo(918)
  api_DosPrintQGetInfo: Driver files count: 0
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(656)
  printerdriver:inshp4050:
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(657)
  Driver:ADOBEPS4.DRV:
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(658)
  Data File:inshp4050.PPD:
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(659)
  Language Monitor:PSMON.DLL:
[2003/03/13 10:48:05, 3] smbd/lanman.c:fill_printq_info_52(661)
  lp_driverlocation:\\PRINTSERVER2\print$\WIN40\0:





Running command: smbclient //localhost/print\$ -N -U'root%XXXXX' -c 
'mkdir WIN40;put /var/spool/cups/tmp/3e7056b3134b8 
WIN40/inshp4050.PPD;put /usr/share/cups/drivers/ADFONTS.MFM 
WIN40/ADFONTS.MFM;put /usr/share/cups/drivers/ADOBEPS4.DRV 
WIN40/ADOBEPS4.DRV;put /usr/share/cups/drivers/ADOBEPS4.HLP 
WIN40/ADOBEPS4.HLP;put /usr/share/cups/drivers/DEFPRTR2.PPD 
WIN40/DEFPRTR2.PPD;put /usr/share/cups/drivers/ICONLIB.DLL 
WIN40/ICONLIB.DLL;put /usr/share/cups/drivers/PSMON.DLL WIN40/PSMON.DLL;'
added interface ip=129.247.181.169 bcast=129.247.181.255 nmask=255.255.255.0
added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
Domain=[NTROBOTIC] OS=[Unix] Server=[Samba 2.2.8pre2]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \WIN40
putting file /var/spool/cups/tmp/3e7056b3134b8 as \WIN40/inshp4050.PPD 
(1577.2 kb/s) (average 1577.2 kb/s)
putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM 
(1149.5 kb/s) (average 1190.6 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV 
(1410.8 kb/s) (average 1328.0 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP 
(1139.4 kb/s) (average 1305.0 kb/s)
putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD 
(212.5 kb/s) (average 1265.2 kb/s)
putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL 
(1891.1 kb/s) (average 1286.8 kb/s)
putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL 
(861.5 kb/s) (average 1271.7 kb/s)

Running command: rpcclient localhost -N -U'root%XXXXX' -c 'adddriver 
"Windows 4.0" 
"inshp4050:ADOBEPS4.DRV:inshp4050.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADOBEPS4.DRV,inshp4050.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL"'
cmd = adddriver "Windows 4.0" 
"inshp4050:ADOBEPS4.DRV:inshp4050.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADOBEPS4.DRV,inshp4050.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL"
Printer Driver inshp4050 successfully installed.

Running command: rpcclient localhost -N -U'root%XXXXX' -c 'setdriver 
inshp4050 inshp4050'
cmd = setdriver inshp4050 inshp4050
Succesfully set inshp4050 to driver inshp4050.

-- 
_________________________________________________________________

Dr.  Hansjoerg Maurer           | LAN- & System-Manager
                                |
Deutsches Zentrum               | DLR Oberpfaffenhofen
  f. Luft- und Raumfahrt e.V.   |
Institut f. Robotik             |
Postfach 1116                   | Muenchner Strasse 20
82230 Wessling                  | 82234 Wessling
Germany                         |
                                |
Tel: 08153/28-2431              | E-mail: Hansjoerg.Maurer at dlr.de
Fax: 08153/28-1134              | WWW: http://www.robotic.dlr.de/
__________________________________________________________________




More information about the samba-technical mailing list