[cups.general] Multiple independent access criteria for sameprinter, how?

Michael Sweet mike at easysw.com
Sat Feb 4 06:03:28 PST 2006


Rob Tanner wrote:
> I'll be providing printing services to a number of Mac computers.  Some 
> of them are in public access labs that don't require any authentication 
> to CUPS to print -- they only require being in the correct address 
> segment.  Other Mac computers outside those segments should be able to 
> print, but will be required to authenticate themselves  Do I (can I) use 
> multiple <Location ... > directives for the same printer?  Or is there a 
> way of using both "Allow From <addr>" and "AuthClass Group nnn" in the 
> same location such that printing is allowed if either condition is met?

"Satisfy Any" will allow you to do this, e.g.:

     <Location /printers/foo>
     AuthType Basic
     Require valid-user

     Order allow,deny
     Allow @LOCAL

     Satisfy Any
     </Location>

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com




More information about the cups mailing list