[cups.general] Passing username to printer
Michael Sweet
msweet at apple.com
Fri Jul 27 09:06:31 PDT 2012
Support for this was added in CUPS 1.6; now you can set the CUPS_USER environment variable or "User" directive in the ~/.cups/client.conf file.
That said, if your other print system requires authentication you can set things up with the auth-info-required option, e.g.:
lpadmin -p printer -o auth-info-required=username,password
and then add "auth-info=username,password" to your default options for the printer:
lpoptions -p printer -o auth-info=username,password
(This only works for SMB and IPP queues at the moment...)
On Jul 27, 2012, at 8:24 AM, John Rowe <rowe at excc.ex.ac.uk> wrote:
> We need to print to another print system that uses different usernames to ours.
>
> We can do this at the command line with lpr -U username but all attempts to use lpotions to allow people to set another username as the default for that printer fail.
>
> Furthermore I can see no way of configuring cups to call a program as an authenticator for that printer.
>
> Any sugestions? It seems insane to have an option that can be used from the command line but not from within an application.
>
> Thanks
>
> John
>
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups
_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
More information about the cups
mailing list