[Samba] Samba PDC and Automatic Printer Install

Michael Aldrich maldrich at i-centrix.com
Thu Jan 15 18:54:11 GMT 2004


ok, I am no longer getting the 'Unable to print file to HP2300 -
client-error-document-format-not-supported' error. I edited the mime.* files
in /etc/cups/...

I am now seeing:
[2004/01/15 13:46:13, 0] printing/print_cups.c:cups_queue_get(898)
  Unable to get jobs for ipp://localhost/printers/HP2300 -
client-error-not-found

and in /var/log/cups/error_log:
E [15/Jan/2004:13:30:12 -0500] get_jobs: resource name '/printers/HP2300' no
good!
E [15/Jan/2004:13:30:12 -0500] get_printer_attrs: resource name
'/printers/::{2227a280-3aea-1069-a2de-08002b30309d}' no good!
E [15/Jan/2004:13:30:17 -0500] print_job: resource name '/printers/HP2300'
no good!
E [15/Jan/2004:13:36:09 -0500] get_jobs: resource name '/printers/HP2300' no
good!
E [15/Jan/2004:13:46:13 -0500] get_jobs: resource name '/printers/HP2300' no
good!

Thanks
Mike

-----Original Message-----
From: samba-bounces+maldrich=i-centrix.com at lists.samba.org
[mailto:samba-bounces+maldrich=i-centrix.com at lists.samba.org]On Behalf
Of Michael Aldrich
Sent: Thursday, January 15, 2004 1:19 PM
To: alaslavic at havertys.com
Cc: samba at lists.samba.org;
samba-bounces+alaslavic=havertys.com at lists.samba.org
Subject: RE: [Samba] Samba PDC and Automatic Printer Install


Thank you very much. I can now see the network printer in 'Ready' status.
Although, from my /var/log/samba/log.<username>, I get:

 Unable to print file to HP2300 - client-error-document-format-not-supported

when trying to print a test page...

Also, will the 'load printers' option in smb.conf be enough to load the
drivers when a new user logs into the domain? Or do I need to have something
special in /homedir/netlogon/username.bat ?
Thanks again.

Mike

-----Original Message-----
From: alaslavic at havertys.com [mailto:alaslavic at havertys.com]
Sent: Thursday, January 15, 2004 12:38 PM
To: Michael Aldrich
Cc: samba at lists.samba.org;
samba-bounces+alaslavic=havertys.com at lists.samba.org
Subject: RE: [Samba] Samba PDC and Automatic Printer Install







The problem is the error "error msg: 'spool queue for 'hp2300' does not
exist on server".  Samba, or some particular user might not have permission
to /var/spool/samba.  Also, depending on how you set up the printer, it
could bee that it is looking for a different spool directory.  Did you set
these printers up in /etc/printcap, or in CUPS?  If you set up an
/etc/printcap, it may be looking for the print spool specified there.

I am using a very similar setup to yourself, and I have these additional
directives under [global]

[global]
      load printers = yes
      printing = cups
      printcap = cups

I think this will cause CUPS to over-write the old /etc/printcap file.

Alex Laslavic
Havertys Tech Services

"Michael Aldrich" <maldrich at i-centrix.com> wrote on 01/15/2004 12:00:38 PM:

> Thanks.
> I made the change and was able to add the driver. Although, I still
cannot
> print..
> The printers are in 'error' status.
>
> rpcclient $> getprinter HP2300
>         flags:[0x800000]
>         name:[\\mercury\HP2300]
>         description:[\\mercury\HP2300,HP LaserJet 2300 Series PCL
6,HP2300]
>         comment:[HP2300]
>
> In my log.<username>:
>
> maldrich logged in as admin user (root privileges)
> [2004/01/15 11:57:52, 1] smbd/service.c:make_connection_snum(705)
>   tdube (192.168.0.61) connect to service print$ initially as user
maldrich
> (uid=0, gid=100) (pid 23819)
> Status Information:
>  sending job 'maldrich at mercury+822' to HP2300 at localhost
>  connecting to 'localhost', attempt 1
>  connected to 'localhost'
>  requesting printer HP2300 at localhost
>  job 'maldrich at mercury+822' transfer to HP2300 at localhost failed
>   error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack 'ACK_FAIL'
>   sending str '^BHP2300' to HP2300 at localhost
>  error msg: 'spool queue for 'hp2300' does not exist on server
> mercury.i-centrix.com'
>  error msg: '   non-existent printer or you need to run 'checkpc -f''
>
> This is when I try and print a Test Page...
> Thanks
> Mike
>
>
> -----Original Message-----
> From: alaslavic at havertys.com [mailto:alaslavic at havertys.com]
> Sent: Wednesday, January 14, 2004 4:03 PM
> To: Michael Aldrich
> Cc: samba at lists.samba.org;
> samba-bounces+alaslavic=havertys.com at lists.samba.org
> Subject: Re: [Samba] Samba PDC and Automatic Printer Install
>
>
>
>
>
>
>
> In your smb.conf, you have the option "use client driver" set to "yes".
> When it is "yes", it will not allow you to set the driver.  You need to
> delete the "use client driver" line, reload samba and it should work.
>
> Alex Laslavic
> Havertys Tech Services
>
> samba-bounces+alaslavic=havertys.com at lists.samba.org wrote on 01/14/2004
> 10:35:11 AM:
>
> > Hello,
> > I am trying to install automatic printer driver download and install.
> > I am running Samba 3, as a PDC, on RedHat 7.3.
> >
> > It seems everything is setup correctly, although I cannot get the
> rpcclient
> > to 'see' my printer.
> > Please notice these two printers listed below ar the same (lp &
HP2300).
> >
> >
> > [root at mercury log]# rpcclient -U=root localhost
> > Password:
> >
> > rpcclient $> enumprinters
> >         flags:[0x800000]
> >         name:[\\mercury\HP2300]
> >         description:[\\mercury\HP2300,,HP2300]
> >         comment:[HP2300]
> >
> >         flags:[0x800000]
> >         name:[\\mercury\lp]
> >         description:[\\mercury\lp,,]
> >         comment:[]
> >
> > rpcclient $> enumdrivers
> >
> >
> >
> > [Windows NT x86]
> > Printer Driver Info 1:
> >         Driver Name: [HP LaserJet 2300 Series PCL 6]
> >
> >
> > [Windows NT x86]
> > Printer Driver Info 1:
> >         Driver Name: [HP LaserJet 2300 Series PCL 6]
> >
> >
> > rpcclient $> setdriver "lp" "HP LaserJet 2300 Series PCL 6"
> > SetPrinter call failed!
> > result was WERR_ACCESS_DENIED
> > rpcclient $> setdriver "HP2300" "HP LaserJet 2300 Series PCL 6"
> > SetPrinter call failed!
> > result was WERR_ACCESS_DENIED
> > rpcclient $>
> >
> >
> > Snip from my smb.conf:
> > [printers]
> >         comment = HP LaserJet
> >         path = /var/spool/samba
> >         printer admin = root
> >         guest ok = Yes
> >         printable = Yes
> >         printing = cups
> >         use client driver = Yes
> >         browseable = No
> >
> > [print$]
> >         comment = Printer Download
> >         path = /var/spool/samba/W32X86/3
> >         valid users = maldrich, root
> >         admin users = maldrich, root
> >         write list = root
> >         read only = No
> >         guest ok = Yes
> >
> > [lp]
> >         path = /var/spool/samba
> >         printer admin = root
> >         read only = No
> >         guest ok = Yes
> >         printable = Yes
> >         printer name = lp
> >         use client driver = Yes
> >         oplocks = No
> >         share modes = Yes
> >
> > On the client side (Windows XP Pro), I can see both printers from
Network
> > Neighborhood,
> > <Domain Name>, Printers & Faxes. Both of them are in 'Error' status.
> >
> > Does anyone have an idea why this operation is continuosly failing?
> >
> > Why do I get WERR_ACCESS_DENIED from SetPrinter?
> >
> > Thanks
> > Mike
> >
> >
> > And thanks to Kurt for getting me this far....
> >
> >
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  http://lists.samba.org/mailman/listinfo/samba
> >
>
>
>
>
>



--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba





More information about the samba mailing list