[cups] Provide password for CLI tools
Stephan
stephanwib at googlemail.com
Tue Apr 4 05:47:48 PDT 2017
Michael,
I did some experimentation this morning and I am now able to add IPP
Everywhere queues like this:
curl \
-u root:<password> \
-H "Cookie: org.cups.sid=f61afe434fbf8086ba477899aaba375f" \
-F "org.cups.sid=f61afe434fbf8086ba477899aaba375f" \
-F "OP=add-printer" \
-F "PRINTER_NAME=xxx" \
-F "PRINTER_LOCATION=" \
-F "DEVICE_URI=ipp://10.70.235.31/" \
-F "PPD_NAME=everywhere" \
http://<host>:631/admin
This does even work with an arbitrary cookie.
2017-04-04 14:18 GMT+02:00 Michael Sweet <msweet at apple.com>:
> Stephan,
>
> > On Apr 4, 2017, at 3:17 AM, Stephan <stephanwib at googlemail.com> wrote:
> > ...
> > One last thing that comes to my mind is the Webinterface. Would it be
> > possible to connect to it in a REST style fashion and add IPP everywhere
> > queues?
>
> No, that is explicitly blocked to mitigate browser-based attacks.
>
> _________________________________________________________
> Michael Sweet, Senior Printing System Engineer
>
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://lists.cups.org/mailman/listinfo/cups
>
More information about the cups
mailing list