[cups.bugs] [MOD] STR #3042: User should be per-connection

twaugh.redhat twaugh at redhat.com
Wed Dec 17 04:12:59 PST 2008


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

The cupsSetUser() function sets a global variable for which user to
authenticate as.  Really this should be a per-connection item: it may be
that one connection has been authenticated as root while another is acting
as the real current user.

I think that httpConnectEncrypt should set the per-connection user to the
global "current user" set by cupsSetUser, and that new functions
httpConnectEncrypt2 and cupsSetUser2 should be added.

http_t *httpConnectEncrypt (const char *host, int port, http_encryption_t
encryption, const char *user);
void cupsSetUser2(http_t *http, const char *user);

Link: http://www.cups.org/str.php?L3042
Version:  -feature





More information about the cups-devel mailing list