Imprimir diretamente no servidor CUPS de clientes não locais (Ubuntu 14.04)

2

Eu configurei um servidor CUPS com poucas filas e impressão de clientes locais (a página de teste do CUPS e o Samba) parece funcionar bem.

Parece que o servidor CUPS está negando clientes não locais embora:

130.127.48.70 - - [03/Jun/2014:14:29:19 -0400] "POST /printers/m137 HTTP/1.1" 200 390 Validate-Job successful-ok
130.127.48.70 - - [03/Jun/2014:14:29:19 -0400] "POST /printers/m137 HTTP/1.1" 200 339 Create-Job client-error-not-authorized
localhost - - [03/Jun/2014:14:40:50 -0400] "POST /printers/m137 HTTP/1.1" 200 410869 Print-Job successful-ok

Isso me faz pensar que tenho algum tipo de restrição baseada em host no meu arquivo de configuração, mas não consigo encontrá-lo. Até defini minha política padrão como Allow all apenas para obter a mesma mensagem de log. Eu estou trabalhando a partir de um arquivo de configuração que já havia trabalhado em uma versão mais antiga do CUPS, que parece bastante semelhante ao exemplo cupsd.conf . Eu posso estar errado, mas parece que o bloco <Limit All> final deveria permitir as ações que os logs reclamam.

MaxLogSize 2000000000

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel info
#AccessLog syslog
#ErrorLog syslog
#PageLog syslog

# Administrator user group...
SystemGroup sys root lp

# Only listen for connections from the local machine.
Listen 0.0.0.0:631
Listen :::631
Listen /var/run/cups/cups.sock

ServerName <snipped>

# Show shared printers on the local network.
Browsing Off
BrowseOrder allow,deny
# (Change '@LOCAL' to 'ALL' if using directed broadcasts from another subnet.)
BrowseAllow @LOCAL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Order allow,deny
  Allow all
</Location>

# Restrict access to the admin pages...
<Location /admin>
  AuthType Default
  Require user @SYSTEM
  Encryption Required
  Order allow,deny
  Allow all
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Encryption Required
  Order allow,deny
  Allow all
</Location>

# Set the default printer/job policies...
<Policy default>  
  # Job-related operations must be done by the owner or an administrator...
  <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
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer 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-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order allow,deny
  </Limit>
</Policy>
    
por OEP 03.06.2014 / 22:53

0 respostas