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

Stephan stephanwib at googlemail.com
Tue Feb 14 02:07:14 PST 2017


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



More information about the cups mailing list