[cups.general] Usernames with LPD

Michael Sweet msweet at apple.com
Thu Oct 18 20:13:52 PDT 2007


Andrew Ayer wrote:
> I need to print to a LPD printer with a particular user name.  The
> CUPS URI syntax allows you to specify a user name in the URI, for
> example lpd://user@printserv.example.com/printer.  However, this URI
> is sanitized with cupsdSanitizeURI() in scheduler/printers.c before
> being passed to the LPD backend (in start_job() in scheduler/job.c),
> and the sanitation removes the user name.  It appears that the only
> way to set a LPD user name is per job (with e.g. lpr -U) and I would
> rather make it both system-wide and able to work through standard
> print dialogs, etc.

The URI passed in argv[0] is sanitized, but the DEVICE_URI env var is
not.  Support for the username in the LPD device URI was added in
CUPS 1.1.21.

-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups mailing list