[cups.general] Problems with CUPS Error 401

Hartmut mailinglists at itmail.ath.cx
Sat Aug 9 09:38:38 PDT 2008


Hi,

I have the following config file and got the followed error.
Has anyone a clue what the problem could be?
The .15 IP is a Windows XP Client. Why is the client not authorized
(cupsdSendError: 8 code=401 (Unauthorized))? Printing works perfect.

Thanks a lot,
Hartmut


------[cupsd.conf]----------------------
LogLevel debug #warning
SystemGroup lpadmin

Listen localhost:631
Listen 172.16.0.104:631
Listen /var/run/cups/cups.sock

Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAllow 172.16.0.0/24

DefaultAuthType Basic
DefaultEncryption Never # Required

<Location />
  Require group printers
  Order allow,deny
  Allow localhost
  Allow 172.16.0.0/24
</Location>

<Location /admin>
  Encryption Required
  Require user @SYSTEM
  Order allow,deny
  Allow localhost
  Allow 172.16.0.0/24
</Location>

<Location /admin/conf>
  AuthType Basic
  Require user @SYSTEM
  Order allow,deny
  Allow localhost
  Allow 172.16.0.0/24
</Location>

<Policy default>
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job
Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription
Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job
Suspend-Current-Job Resume-Job CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
    Allow 172.16.0.0/24
  </Limit>

  <Limit Pause-Printer Resume-Printer Set-Printer-Attributes
Enable-Printer Disable-Printer Pause-Printer-After-Current-Job
Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer
Restart-Printer Shutdown-Printer Startup-Printer Promote-Job
Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class
CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
    AuthType Basic
    Require user @SYSTEM
    Order deny,allow
    Allow 172.16.0.0/24
  </Limit>

  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
    Allow 172.16.0.0/24
  </Limit>

  <Limit All>
    Order deny,allow
    Allow 172.16.0.0/24
  </Limit>
</Policy>

Printcap /var/run/cups/printcap
--------------------------------------------------------------------



and get the following error:
--------------------------------------------------------------------
==> /var/log/cups/access_log <==
172.16.0.15 - - [09/Aug/2008:18:21:18 +0200] "POST
/printers/BrotherHL1650 HTTP/1.1" 401 0 - -
172.16.0.15 - - [09/Aug/2008:18:21:18 +0200] "POST
/printers/BrotherHL1650 HTTP/1.1" 401 0 - -
172.16.0.15 - - [09/Aug/2008:18:21:18 +0200] "POST
/printers/BrotherHL1650 HTTP/1.1" 401 0 - -

==> /var/log/cups/error_log <==
D [09/Aug/2008:18:21:18 +0200] cupsdCloseClient: 8
D [09/Aug/2008:18:21:18 +0200] cupsdAcceptClient: 8 from 172.16.0.15:631
(IPv4)
D [09/Aug/2008:18:21:18 +0200] cupsdReadClient: 8 POST
/printers/BrotherHL1650 HTTP/1.1
D [09/Aug/2008:18:21:18 +0200] cupsdAuthorize: No authentication data
provided.
D [09/Aug/2008:18:21:18 +0200] cupsdSendError: 8 code=401 (Unauthorized)
D [09/Aug/2008:18:21:18 +0200] cupsdCloseClient: 8
D [09/Aug/2008:18:21:18 +0200] cupsdAcceptClient: 8 from 172.16.0.15:631
(IPv4)
D [09/Aug/2008:18:21:18 +0200] cupsdReadClient: 8 POST
/printers/BrotherHL1650 HTTP/1.1
D [09/Aug/2008:18:21:18 +0200] cupsdAuthorize: username="hartmut"
D [09/Aug/2008:18:21:18 +0200] Get-Printer-Attributes
http://172.16.0.104:631/printers/BrotherHL1650
D [09/Aug/2008:18:21:18 +0200] cupsdProcessIPPRequest: 8 status_code=0
(successful-ok)
D [09/Aug/2008:18:21:18 +0200] cupsdCloseClient: 8
D [09/Aug/2008:18:21:18 +0200] cupsdAcceptClient: 8 from 172.16.0.15:631
(IPv4)
D [09/Aug/2008:18:21:18 +0200] cupsdReadClient: 8 POST
/printers/BrotherHL1650 HTTP/1.1
D [09/Aug/2008:18:21:18 +0200] cupsdAuthorize: No authentication data
provided.
D [09/Aug/2008:18:21:18 +0200] cupsdSendError: 8 code=401 (Unauthorized)
D [09/Aug/2008:18:21:18 +0200] cupsdCloseClient: 8
D [09/Aug/2008:18:21:18 +0200] cupsdAcceptClient: 8 from 172.16.0.15:631
(IPv4)
D [09/Aug/2008:18:21:18 +0200] cupsdReadClient: 8 POST
/printers/BrotherHL1650 HTTP/1.1
D [09/Aug/2008:18:21:18 +0200] cupsdAuthorize: username="hartmut"
D [09/Aug/2008:18:21:18 +0200] Get-Printer-Attributes
http://172.16.0.104:631/printers/BrotherHL1650
D [09/Aug/2008:18:21:18 +0200] cupsdProcessIPPRequest: 8 status_code=0
(successful-ok)
[...]
--------------------------------------------------------------------





More information about the cups mailing list