Problem with Authentication in <Location />
vipul mahajan
vipul.mahajan at spectross.com
Mon Feb 6 20:39:43 PST 2012
Hi,
I wanted to add authentication in my cups server (my.ip.addr.xx). I edited the config file of CUPS 1.5 as follows:
<Location />
AuthType Basic
AuthClass User
Require user admin
# Allow remote access...
Order allow,deny
Allow all
</Location>
where admin is a valid user. It got logged on but when i try to click the "Add printer" in "Administrator" or "Classes" or "Printers" or any other option in the menu it says errors like:
Add Printer Error
Unable to add printer:
Unknown
or
Printers Error
Unable to get printer list:
Unknown
But when I edit the config file as follows it doesn't show any errors & everything works fine
<Location />
Order allow,deny
Allow all
</Location>
<Location /admin>
AuthType Basic
AuthClass User
Require user admin
# Allow remote access...
Order allow,deny
Allow all
</Location>
<Location /printers>
AuthType Basic
AuthClass User
Require user admin
# Allow remote access...
Order allow,deny
Allow all
</Location>
<Location /classes>
AuthType Basic
AuthClass User
Require user admin
# Allow remote access...
Order allow,deny
Allow all
</Location>
Kindly let me know the correct way to implement authentication when i enter my.ip.add.xx.
More information about the cups
mailing list