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

Luc Lalonde luc.lalonde at polymtl.ca
Wed Sep 15 11:18:31 PDT 2010


Hello folks,

I'm wondering if it is possible to combine these two rules into one:

<Location /printers/hp1300>
  Order Allow, Deny
  Allow From 192.168.0.*
</Location>

<Location /printers/hp1300_dmz>
  Order Allow, Deny
  AuthType Basic
  Allow From 192.168.1.*
</Location>

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.*).

Thanks!

-- 
Luc Lalonde, analyste
---------------------------------------------------------------------
Département de génie informatique:
École polytechnique de Montréal
(514) 340-4711 x5049
Luc.Lalonde at polymtl.ca
---------------------------------------------------------------------





More information about the cups mailing list