[MOD] STR #4210: Listen with domain socket specified fails when setting printer options

Alex Korobkin <[email protected]> Fri, 12 Oct 2012 11:46:37 -0700 (PDT)
Newsgroups gmane.comp.printing.cups.bugs
Message-ID <[email protected]>
DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

When authentication is enabled in cupsd.conf, and there is a Listen
directive with a path to socket (Listen /var/run/cups/cups.sock), it fails
with Broken Pipe error when setting printer's default options.

In the logs one sees 
cupsdAuthorize: Authorization=""
cupsdAuthorize: No authentication data provided.

Removing Listen /path/to/sock directive workarounds the problem. 

cupsd.conf and error_log are attached.

Link: http://www.cups.org/str.php?L4210
Version: 1.5.4

_______________________________________________
cups-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/cups-bugs
cupsd.conf (text/plain, 1.6 KB)
ConfigFilePerm 0644
LogFilePerm 0644

MaxLogSize 1000000000
AccessLog syslog
PageLog syslog
LogLevel debug2

SystemGroup root cups-admins

Port 631
Listen /var/run/cups/cups.sock
SSLPort 443
ServerCertificate /etc/cups/ssl/server.crt
ServerKey /etc/cups/ssl/server.key

MaxClients 2000
MaxClientsPerHost 10
MaxJobs 750
MaxJobsPerPrinter 75

DefaultAuthType Basic

ErrorPolicy retry-job

<Location />
  Encryption Required
</Location>

<Location /admin>
  Encryption Required
  Require user @SYSTEM @printers-admins
</Location>

<Location /admin/conf>
  Encryption Required
  Require user @SYSTEM @printers-admins
</Location>

<Policy default>
  <Limit Send-Document Send-URI Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications CUPS-Move-Job CUPS-Get-Document>
    Require user @OWNER @SYSTEM
  </Limit>

  <Limit Hold-Job Release-Job Restart-Job Purge-Jobs Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job>
    Require user @OWNER @SYSTEM @printers-admins
  </Limit>

  <Limit Activate-Printer CUPS-Accept-Jobs CUPS-Add-Class CUPS-Add-Modify-Printer CUPS-Delete-Class CUPS-Delete-Printer CUPS-Reject-Jobs CUPS-Set-Default Deactivate-Printer Disable-Printer Enable-Printer Hold-New-Jobs Pause-Printer Pause-Printer-After-Current-Job Promote-Job Release-Held-New-Jobs Restart-Printer Resume-Printer Schedule-Job-After Set-Printer-Attributes Shutdown-Printer Startup-Printer>
    Require user @SYSTEM @printers-admins
  </Limit>

  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM @printers-admins
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>