[cups] Provide password for CLI tools

Michael Sweet msweet at apple.com
Mon Apr 3 07:00:27 PDT 2017


Stephan,

The existing CUPS-Create-Local-Printer operation (added in CUPS 2.2) handles PPD creation for IPP print queues and calls down to the private API (_ppdCreateFromIPP, added in CUPS 2.1) used by lpadmin when you specify "-m everywhere".  Local queues can then be "promoted" to regular queues by setting the "printer-is-shared" attribute to 'true' with the CUPS-Add-Modify-Printer operation.

While I don't see us officially promoting _ppdCreateFromIPP to public API, it is unlikely to change and I know Till's cups-browsed add-on uses it.  Ultimately, however, we hope that developers will finally migrate to the dynamic printer APIs that were added in CUPS 1.4 (!) that don't depend on static queues to show every possible print queue in the universe and (at least as of CUPS 2.2) will automatically create a short-lived queue for the printers that *are* used.


> On Apr 3, 2017, at 7:08 AM, Stephan <stephanwib at googlemail.com> wrote:
> 
> Michael,
> 
> could you please comment on my proposal to create a tool that can save a
> PPD file for an IPP Everywhere printer, instead of creating a new queue on
> a CUPS server?
> 
> 
> Thanks and regards,
> 
> Stephan
> 
> 
> 2017-03-24 13:05 GMT+01:00 Stephan <stephanwib at googlemail.com>:
> 
>> Michael,
>> 
>> I think we can pretty much easily implement most CUPS operations in our
>> own IPP client implementation, which can then use one of the HTTP
>> authentication mechanisms supported. However, there is one thing we can not
>> replace, that  is the IPP Everywhere printer creation. What would be of
>> help is a way to save a PPD for an IPP Everywhere printer. We could then
>> create a PPD locally and call CUPS-Add-Modify-Printer on the remote server.
>> 
>> How would you judge extending lpadmin so that it can save a PPD insted of
>> creating a queue for an IPP everywhere printer, or to provide a separate
>> tool that can do this?
>> 
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://lists.cups.org/mailman/listinfo/cups

_________________________________________________________
Michael Sweet, Senior Printing System Engineer




More information about the cups mailing list