[cups.general] CUPS users authentication

henri henri at stmargarets.school.nz
Thu Mar 27 13:34:01 PDT 2008


You may want to have a look at PrintAgent; a component of  
PrintingWorks. PrintingWorks is a complete open source print  
accounting solution.

PrintAgent is compatible with clients printing from windows. It will  
allow you to authenticate clients who wish to printing against a  
directory service regardless of whether they are not bound to that  
directory.

This makes PrintAgent perfect for unmanaged laptops at schools,  
universities or institutes who do not require laptops to be bound to a  
directory system when attached to the network.

Details on PrintAgent is available from :  http://www.lucidsystems.org/printingworks/printagent/
A quick presentation of the system in action is available from : http://www.lucidsystems.org/printingworks/

Hopefully this helps.


On 28/03/2008, at 7:00 AM, cups at easysw.com wrote:
> Send cups mailing list submissions to
>         cups at easysw.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.easysw.com/mailman/listinfo/cups
> or, via email, send a message with subject or body 'help' to
>         cups-request at easysw.com
>
> You can reach the person managing the list at
>         cups-owner at easysw.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of cups digest..."
>
>
> Today's Topics:
>
>    1. CUPS users authentication (Andr?© Ribeiro)
>    2. Howto Hold Job in queue, yet release job from client.
>       (Scott Tester)
>    3. foomatic-rip stopped with status 9! (Phil Dibowitz)
>    4. lpoptions ignored (molinet at ires.in2p3.fr)
>    5. Re: Howto Hold Job in queue, yet release job from client.
>       (Michael R Sweet)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 26 Mar 2008 15:08:52 -0700
> From: Andr?© Ribeiro <ajoao at ipn.pt>
> Subject: [cups.general] CUPS users authentication
> To: cups at easysw.com
> Message-ID: <32241-cups.general at news.easysw.com>
>
> Hello!
>
> I'm using a CUPS print server together with PyKota to make user  
> printing account, but I'm in trouble to get real users  
> authentication (from our Active directory with LDAP support) in  
> CUPS. This is, when I send a print job to CUPS/PyKota managed  
> printer, the username sent is the one from Windows XP, and not the  
> own I set in Windows (Printer -> Properties -> Ports -> Configure  
> Port -> Use the specified user account).
> One way to get this right would be to use samba and then the  
> username sent should be right, but in order to do so, we needed to  
> install it in all computers on our network, witch is not a good idea..
>
> Anyone know how can I solve this, forcing users to send correct  
> credentials to CUPS. Any help would be useful. Tanks in advance.
>
> Best regards.
> Andr?© Ribeiro
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 27 Mar 2008 13:47:14 +1100
> From: Scott Tester <scott at smbc.com.au>
> Subject: [cups.general] Howto Hold Job in queue, yet release job from
>         client.
> To: cups at easysw.com
> Message-ID: <47EB0AB2.40405 at smbc.com.au>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I have set up a library printer to be accessed by staff and students,
> staff jobs print immediately, students are held, to be released by the
> Librarian on payment.  Relevant parts of printers.conf look like  
> this...
>
> <Printer LibHold>
> Info Holding Queue between LibPrint and LibStaff
> DeviceURI ipp://jordan.smbc.com.au/printers/LibStaff
> Option job-hold-until indefinite
> Option job-hold-until-default indefinite
> </Printer>
>
> <Printer LibStudent>
> Info Student Access to Library Printer
> DeviceURI ipp://jordan.smbc.com.au:631/printers/LibHold
> </Printer>
>
> <Printer LibStaff>
> Info Main Library Printer
> DeviceURI socket://192.168.0.182
> </Printer>
>
> Access to LibStudent is by ipp.  Mostly it is working fine.  The  
> problem
> is when a student prints from Mac OSX, then puts their computer to
> sleep.  The print job is released or canceled, and the Mac is then  
> taken
> out of sleep (in that order).  The Mac sees that the job has  
> disappeared
> so it re-issues the job.  How do I get the Mac to forget about the job
> once it is in the servers queue?
>
> Scott
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.easysw.com/pipermail/cups/attachments/20080327/fb809ed1/attachment.html
>
> ------------------------------
>
> Message: 3
> Date: Thu, 27 Mar 2008 00:13:04 -0700
> From: Phil Dibowitz <phil at ipom.com>
> Subject: [cups.general] foomatic-rip stopped with status 9!
> To: cups at easysw.com
> Message-ID: <47EB4900.1080104 at ipom.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Recently my cups installation started failing all print jobs with
> "/usr/lib/cups/filter/foomatic-rip failed" (according to the web  
> interface).
>
> In the logs, I get:
>
> E [27/Mar/2008:00:07:35 -0700] PID 26240 (/usr/lib/cups/filter/ 
> foomatic-rip)
> stopped with status 9!
>
> If I turn the loglevel up to debug, I don't get anything more useful:
>
> ...
> D [27/Mar/2008:00:09:21 -0700] [Job 12] PageLeft = 18.0, PageRight =  
> 594.0
> D [27/Mar/2008:00:09:21 -0700] [Job 12] PageTop = 783.0, PageBottom  
> = 36.0
> D [27/Mar/2008:00:09:21 -0700] [Job 12] PageWidth = 612.0,  
> PageLength = 792.0
> D [27/Mar/2008:00:09:21 -0700] [Job 12] Wrote 1 pages...
> D [27/Mar/2008:00:09:21 -0700] PID 26320 (/usr/lib/cups/filter/pstops)
> exited with no errors.
> D [27/Mar/2008:00:09:21 -0700] [Job 12] Couldn't dup logh to stderr
> D [27/Mar/2008:00:09:21 -0700] [Job 12] Error closing renderer
> E [27/Mar/2008:00:09:21 -0700] PID 26321 (/usr/lib/cups/filter/ 
> foomatic-rip)
> stopped with status 9!
>
> I turned on foomatic logging and in /tmp/foomatic.log I get:
>
> ********************BEGIN 
> *FILE******************************************
>
> foomatic-rip version $Revision$ running...
> called with arguments: '13', 'root', 'asdfadf', '1', 'media=Letter
> sides=one-sided finishings=3
> job-uuid=urn:uuid:9b1c38de-01e7-3525-4da4-980e1f21e0da'
> Parsing PPD file ...
> *cupsFilter: "application/vnd.cups-postscript 0 foomatic-rip"
> Added option ColorSpace
> Added option Resolution
> Added option PageSize
> Added option PageRegion
> Added option Model
> Added option PrintoutMode
> Added option ImageableArea
> Added option PaperDimension
> Added option Duplex
> Added option Quality
> Added option Font
>
> Parameter Summary
> -----------------
>
> Spooler: cups
> Printer: kitt
> Shell: /bin/sh
> PPD file: /etc/cups/ppd/kitt.ppd
> ATTR file:
> Printer model: HP DeskJet 950C Foomatic/hpijs (recommended)
> Options: media=Letter sides=one-sided finishings=3
> job-uuid=urn:uuid:9b1c38de-01e7-3525-4da4-980e1f21e0da
> Job title: asdfadf
> File(s) to be printed:
> <STDIN>
>
> GhostScript extra search path ('GS_LIB'): /usr/share/cups/fonts
> Pondering option 'media=Letter'
> Pondering option 'sides=one-sided'
> Pondering option 'finishings=3'
> Unknown option finishings=3.
> Pondering option 'job-uuid=urn:uuid:9b1c38de-01e7-3525-4da4-980e1f21e0da'
> Unknown option job-uuid=urn:uuid:9b1c38de-01e7-3525-4da4-980e1f21e0da.
>
> ================================================
>
> File: <STDIN>
>
> ================================================
>
> Reading PostScript input ...
> --> This document is DSC-conforming!
>
> -----------
> Found: %%BeginProlog
> Found: %%EndProlog
>
> -----------
> Found: %%BeginSetup
> Found: %%BeginFeature: *PrintoutMode Normal
>    Option: PrintoutMode=Normal --> Setting option
> Found: %% FoomaticRIPOptionSetting: PrintoutMode=Normal
>    Option: PrintoutMode=Normal --> Setting option
> Found: %%BeginFeature: *Quality FromPrintoutMode
>    Option: Quality=FromPrintoutMode --> Setting option
> Found: %% FoomaticRIPOptionSetting: Quality=@PrintoutMode
>    Option: Quality=FromPrintoutMode --> Setting option
> Found: %%BeginFeature: *PageSize Letter
>    Option: PageSize=Letter --> Setting option
> Found: %% FoomaticRIPOptionSetting: PageSize=Letter
>    Option: PageSize=Letter --> Setting option
> Found: %%BeginFeature: *Duplex None
>    Option: Duplex=None --> Setting option
> Found: %% FoomaticRIPOptionSetting: Duplex=None
>    Option: Duplex=None --> Setting option
> Found: %%EndSetup
> Inserting PostScript code for CUPS' page accounting
>
> -----------
> New page:  1 1
> Inserting option code into "PageSetup" section.
>
> Found: %%BeginPageSetup
> Found: %%EndPageSetup
> End of page header
> Flushing FIFO.
>
> Starting renderer
> JCL: <job data>
>
> renderer PID kid4=26375
> renderer command: gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE
> -sDEVICE=ijs -sIjsServer=hpijs -sDeviceManufacturer="HEWLETT-PACKARD"
> -sDeviceModel="DESKJET 950" -dDEVICEWIDTHPOINTS=612 - 
> dDEVICEHEIGHTPOINTS=792
> -dDuplex=false -r300
> - 
> sIjsParams 
> = 
> Quality:Quality 
> =0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2
> -dIjsUseOutputFD -sOutputFile=- -
> perl: warning: Setting locale failed.
> perl: warning: Please check that your locale settings:
>         LANGUAGE = (unset),
>         LC_ALL = (unset),
>         LANG = "en.UTF8"
>     are supported and installed on your system.
> perl: warning: Falling back to the standard locale ("C").
> foomatic-gswrapper: gs '-sstdout=%stderr' '-dBATCH' '-dPARANOIDSAFER'
> '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs'
> '-sDeviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=DESKJET 950'
> '-dDEVICEWIDTHPOINTS=612' '-dDEVICEHEIGHTPOINTS=792' '-dDuplex=false'
> '-r300'
> '- 
> sIjsParams 
> = 
> Quality:Quality 
> =0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2'
> '-dIjsUseOutputFD' '-sOutputFile=%stdout' '-_'
>
> ********************END 
> ***FILE******************************************
>
>
> I'm running cups 1.3.6-3 on Debian Unstable.
>
> Any help would be much appreciated.
> -- 
> Phil Dibowitz                             phil at ipom.com
> Open Source software and tech docs        Insanity Palace of Metallica
> http://www.phildev.net/                   http://www.ipom.com/
>
> "Never write it in C if you can do it in 'awk';
>  Never do it in 'awk' if 'sed' can handle it;
>  Never use 'sed' when 'tr' can do the job;
>  Never invoke 'tr' when 'cat' is sufficient;
>  Avoid using 'cat' whenever possible" -- Taylor's Laws of Programming
>
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: signature.asc
> Type: application/pgp-signature
> Size: 252 bytes
> Desc: OpenPGP digital signature
> Url : http://lists.easysw.com/pipermail/cups/attachments/20080327/adceaa60/attachment.bin
>
> ------------------------------
>
> Message: 4
> Date: Thu, 27 Mar 2008 05:03:27 -0700
> From: <molinet at ires.in2p3.fr>
> Subject: [cups.general] lpoptions ignored
> To: cups at easysw.com
> Message-ID: <32244-cups.general at news.easysw.com>
>
> I've set several options for my printer in /etc/cups/lpoptions
> on localhost for example :
> Dest my_printer page-left=24 page-right=24 prettyprint=true
>
> But these options (prettyprint) are ignored when I print standard  
> ouput from localhost :
> ls | lpr -P my_printer
>
> I've also tried to pass the prettyprint option to lpr with -o  
> prettyprint=true
> but I still have the same problem, all options are ignored.
>
> The only way to print standard output with option prettyprint is to  
> use
> ls | a2ps -E -P my_printer
> which pretty prints correctly
>
> OS : Scientific Linux
> cups-1.2.4-11.14.el5_1.4.x86_64
> HP Laserjet 8150 DN
>
>
> Thanks in advance for help
>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 27 Mar 2008 05:52:38 -0700
> From: Michael R Sweet <msweet at apple.com>
> Subject: Re: [cups.general] Howto Hold Job in queue, yet release job
>         from client.
> To: "Mirror of cups.general Newsgroup" <cups at easysw.com>
> Message-ID: <47EB9896.2050504 at apple.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Scott Tester wrote:
> > I have set up a library printer to be accessed by staff and  
> students,
> > staff jobs print immediately, students are held, to be released by  
> the
> > Librarian on payment.  Relevant parts of printers.conf look like  
> this...
> >
> > <Printer LibHold>
> > Info Holding Queue between LibPrint and LibStaff
> > DeviceURI ipp://jordan.smbc.com.au/printers/LibStaff
> > Option job-hold-until indefinite
> > Option job-hold-until-default indefinite
> > </Printer>
> >
> > <Printer LibStudent>
> > Info Student Access to Library Printer
> > DeviceURI ipp://jordan.smbc.com.au:631/printers/LibHold
> > </Printer>
> >
> > <Printer LibStaff>
> > Info Main Library Printer
> > DeviceURI socket://192.168.0.182
> > </Printer>
> >
> > Access to LibStudent is by ipp.  Mostly it is working fine.  The  
> problem
> > is when a student prints from Mac OSX, then puts their computer to
> > sleep.  The print job is released or canceled, and the Mac is then  
> taken
> > out of sleep (in that order).  The Mac sees that the job has  
> disappeared
> > so it re-issues the job.  How do I get the Mac to forget about the  
> job
> > once it is in the servers queue?
>
> Add "?waitjob=no" to the end of the device URI on the client's queue.
>
> -- 
> ______________________________________________________________________
> Michael R Sweet                        Senior Printing System Engineer
>
>
>
> ------------------------------
>
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups
>
>
> End of cups Digest, Vol 50, Issue 29
> ************************************
>





More information about the cups mailing list