[cups-devel] lpr and authentication for dnssd backend on Mac

Andreas Lobbes Andreas.Lobbes at thinprint.com
Fri Sep 9 08:42:18 PDT 2016


Hello Michael,

is there another, "more serious" way, just using the CUPS interface (either binary or API) to print nonblocked,
for the special case that related authentication info is already stored in the "Keychain"?
I suppose that Mac-specific print APIs (AppKit, Core) also use the CUPS API.
When having a look into the print control file of such a job (being print by a Mac application like Safari, Preview),
I find only the username, but no password information. And I guess, there is also no password in the ps output?!
Any idea, how these Mac binaries pass related authentication information to CUPS?

Thanks & Regards,
Andreas


________________________________________
From: cups-devel-bounces at cups.org [cups-devel-bounces at cups.org] on behalf of Michael Sweet [msweet at apple.com]
Sent: Friday, September 09, 2016 5:10 PM
To: The CUPS developer list.
Subject: Re: [cups-devel] lpr and authentication for dnssd backend on Mac

Andreas,

> On Sep 9, 2016, at 10:53 AM, Andreas Lobbes <Andreas.Lobbes at thinprint.com> wrote:
> ...
> My Question is: Is it possible to pass some Mac-specific Options via lpr, so
> that the print job can get through?

You can, via the "auth-info" option, specify the username and password to use with the remote server:

    lpr -o auth-info="username","password" filename

But specifying that option exposes your credentials in the output of "ps" (not to mention on the screen to someone looking over your shoulder) so I can't say it is a good idea.

_________________________________________________________
Michael Sweet, Senior Printing System Engineer

_______________________________________________
cups-devel mailing list
cups-devel at cups.org
https://lists.cups.org/mailman/listinfo/cups-devel



More information about the cups-devel mailing list