[cups.bugs] ipp.c, Deviuce URI and cupsUser

Michael R Sweet msweet at apple.com
Thu Apr 24 12:04:32 PDT 2008


Michael Collin Nielsen wrote:
> When using the ipp backend the sourcecode seems to allow URI's like:
> 
> ipp://user@host/device
> 
> The code in ipp.c parses the URI and sets cupsUser to the username suplied in the URI, however as far as I can see, then when creating the request, the requesting-user-name is taken from argv[2] not from cupsUser.
> Therefore it is not possible to alter the user using  the URI. Is the the way it is designed to be or is it a bug ?

As designed.

The username in the URI (or as passed in via AUTH_USERNAME) is used
for authentication purposes.  The requesting-user-name in argv[2] can
be different.

-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups mailing list