[cups-devel] CUPS-Create-Local-Printer prohibited by remote hosts

Stephan <stephanwib-gM/[email protected]> Tue, 14 Feb 2017 11:07:14 +0100
Newsgroups gmane.comp.printing.cups.devel
Message-ID <CABZpUSUvzYJO7HHCaHLg2KQSxXR9Dwbyrgq79A3aKbPKu=t-xA@mail.gmail.com>
Hi!

In our use case a controller needs to add IPP Everywhere print queues
on a bunch of print servers. The CUPS-Create-Local-Printer IPP
function suits perfectly, however, it cannot be invoked by remote
hosts because it is prohibited in the code. The condition is checked
in scheduler/ipp.c by the create_local_printer() function:

  if (!httpAddrLocalhost(httpGetAddress(con->http)))
  {
    send_ipp_status(con, IPP_STATUS_ERROR_FORBIDDEN, _("Only local
users can create a local printer."));
    return;
  }


Removing this check makes things work as needed.

Would it be possible to make this configurable?


Thanks and regards,

Stephan