[Samba] Rpcclient - setdriver.
Lars Göransson
larg at spray.se
Mon May 5 16:08:58 GMT 2003
I have done one succesful driver for downloading to my windows 2000-client.
When i try set another with "setdriver " I get a result as : SetPrinter call failed!
The only differens between them is in the desritption-field
flags:[0x800000]
name:[\\localhost\HP4600]
description:[\\localhost\HP4600,HP4600,H4600]
comment:[H4600]
flags:[0x800000]
name:[\\localhost\HP4600CLJ]
description:[\\localhost\HP4600CLJ,,HP4600CLJ]
comment:[HP4600CLJ]
How can I put in HP4600CLJ in between ",," in description:[\\localhost\HP4600CLJ,,HP4600CLJ]
In Windows It is shown as "Model", If that is the solution, dont think so..or?
I can't understand why there is a difference between this printer as shown with enumprinters, the printcap entrys are similar.
This is my printcap:
-----SNIP--------------------------------------------------------------------
# /etc/printcap
##LPRNGTOOL##SOCKET filtertype=IFHP ifhp_options=status,sync,pagecount,waitend printerdb_entry=hpcolorlj
H4600|HP4600
:cm=HP Color LaserJet 4600
:filter=/usr/libexec/filters/ifhp
:ifhp=model=hpcolorlj,status,sync,pagecount,waitend
:lp=172.21.130.197%9100
:lprngtooloptions=FILTERTYPE="IFHP" IFHP_OPTIONS="status,sync,pagecount,waitend" PRINTERDB_ENTRY="hpcolorlj"
:mx=0
:sd=/var/spool/lpd/%P
:sh
##LPRNGTOOL## SOCKET filtertype=IFHP ifhp_options=status,sync,pagecount,waitend printerdb_entry=hpcolorlj
HP4600CLJ|HP4600CLJ
:cm=HP Color LaserJet 4600
:filter=/usr/libexec/filters/ifhp
:ifhp=model=hpcolorlj,status,sync,pagecount,waitend
:lprngtooloptions=FILTERTYPE="IFHP" IFHP_OPTIONS="status,sync,pagecount,waitend" PRINTERDB_ENTRY="hpcolorlj"
:mx=0
:sd=/var/spool/lpd/%P
:sh
:lp=172.21.130.197%9100
---- END SNIP------------------------------------------------------------
-
BTW i have "guest account = root" and "printer admin = root" in smb.conf.
"enumdriver 2"
---------------------------------------------------------------------
Printer Driver Info 2:
Version: [3]
Driver Name: [HP4600]
Architecture: [Windows NT x86]
Driver Path: [\\localhost\print$\W32X86\3\HPBF422G.DLL]
Datafile: [\\localhost\print$\W32X86\3\HPBF422I.PMD]
Configfile: [\\localhost\print$\W32X86\3\HPBF422E.DLL]
Printer Driver Info 2:
Version: [3]
Driver Name: [HP4600CLJ]
Architecture: [Windows NT x86]
Driver Path: [\\localhost\print$\W32X86\3\HPBF422G.DLL]
Datafile: [\\localhost\print$\W32X86\3\HPBF422I.PMD]
Configfile: [\\localhost\print$\W32X86\3\HPBF422E.DLL]
-----------------------------------------------------------------------------
They are exactly the same.
When I run setdriver HP4600CLJ HP4600CLJ (rpccliend -d 5localhost) this is a part of the log-file:
-----------------------------------------------------------------
rpc_api_pipe: len left: 0 smbtrans read: 28
rpc_api_pipe: fragment first and last both set
000018 spoolss_io_r_setprinter
0018 status: WERR_ACCESS_DENIED
SetPrinter call failed!
make_spoolss_q_closeprinter
000000 spoolss_io_q_closeprinter
000000 smb_io_pol_hnd printer handle
0000 data1: 00000000
0004 data2: 00000002
0008 data3: 0000
000a data4: 0000
000c data5: a6 6e b6 3e f0 05 00 00
rpc_api_pipe_req: Outgoing data not a multiple of 8 bytes....
create_rpc_request: opnum: 0x1d data_len: 0x2c
create_rpc_request: data_len: 2c auth_len: 0 alloc_hint: 1c
-----------------------------------------------------------------------
ACCESS DENIED, why? I´m running this as root.
Is there another way to log rpcclient then the rpcclient -d [level] option?
Lars
_____________________________________________________________
Här börjar internet!
Skaffa gratis e-mail och gratis internet på http://www.spray.se
Hitta rätt på internet med Lycos - http://lycos.spray.se
More information about the samba
mailing list