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

Andreas Lobbes <[email protected]> Fri, 09 Sep 2016 15:42:18 +0000
Newsgroups gmane.comp.printing.cups.devel
Message-ID <D5083E47A2AE0F44A2B890C96B913D0332B6BB80@ctd-exchange02>
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: [email protected] [[email protected]] on behalf of Michael Sweet [[email protected]]
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 <[email protected]> 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
[email protected]
https://lists.cups.org/mailman/listinfo/cups-devel