[cups.general] Conditional authentification based on LAN-IP?

Michael Sweet msweet at apple.com
Wed Sep 15 12:05:48 PDT 2010


Yeah, as long as you don't have the issue of more than two zones the =
Satisfy Any approach will work.

(and it is like Apache on purpose... :)

On Sep 15, 2010, at 11:21 AM, Brian Kroth wrote:

> You probably want to use a "Satisfy Any" rule.  It's a lot like =
Apache.
>=20
> http://www.cups.org/documentation.php/ref-cupsd-conf.html#Satisfy
>=20
> Brian
>=20
> Luc Lalonde <luc.lalonde at polymtl.ca> 2010-09-15 14:18:
>> Hello folks,
>>=20
>> I'm wondering if it is possible to combine these two rules into one:
>>=20
>> <Location /printers/hp1300>
>>  Order Allow, Deny
>>  Allow =46rom 192.168.0.*
>> </Location>
>>=20
>> <Location /printers/hp1300_dmz>
>>  Order Allow, Deny
>>  AuthType Basic
>>  Allow =46rom 192.168.1.*
>> </Location>
>>=20
>> Basically, these two point to the same printer.  However, I want =
people to be able to use the printers without having to authenticate if =
they are on the 192.168.0.* LAN but force authentification on the =
wireless-dmz LAN (192.168.1.*).
>>=20
>> Thanks!
>>=20
>> --=20
>> Luc Lalonde, analyste
>> ---------------------------------------------------------------------
>> D=E9partement de g=E9nie informatique:
>> =C9cole polytechnique de Montr=E9al
>> (514) 340-4711 x5049
>> Luc.Lalonde at polymtl.ca
>> ---------------------------------------------------------------------
>>=20
>> _______________________________________________
>> cups mailing list
>> cups at easysw.com
>> http://lists.easysw.com/mailman/listinfo/cups
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups

________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair








More information about the cups mailing list