[cups.general] Usernames with LPD
Kurt Pfeifle
k1pfeifle at gmx.net
Thu Oct 18 20:23:21 PDT 2007
Michael Sweet wrote:
> 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
What if you put "job-originating-user-name=whatever" into the
/etc/cups/lpoptions file?
>> and able to work through standard
>> print dialogs, etc.
Whats a "standard" print dialog for you?
> 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.
--
Kurt Pfeifle
System & Network Printing Consultant ---- Linux/Unix/Windows/Samba/CUPS
Infotec Deutschland GmbH ..................... Hedelfinger Strasse 58
A RICOH Company ........................... D-70327 Stuttgart/Germany
More information about the cups
mailing list