patch: user names and cups printing
Shahms E. King
shahms at shahms.com
Mon Jul 16 21:14:00 GMT 2001
in samba 2.2.1a printing with cups always uses 'root' as the requesting
user, this fixes that.
--- printing/print_cups.c.orig Mon Jul 16 14:02:53 2001
+++ printing/print_cups.c Mon Jul 16 14:05:46 2001
@@ -365,7 +365,7 @@
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL,
uri);
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME,
"requesting-user-name",
- NULL, cupsUser());
+ NULL, pjob->user);
/*
* Do the request and get back a response...
@@ -455,7 +455,7 @@
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL,
uri);
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME,
"requesting-user-name",
- NULL, cupsUser());
+ NULL, pjob->user);
/*
* Do the request and get back a response...
@@ -545,7 +545,7 @@
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL,
uri);
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME,
"requesting-user-name",
- NULL, cupsUser());
+ NULL, pjob->user);
/*
* Do the request and get back a response...
@@ -638,7 +638,7 @@
"printer-uri", NULL, uri);
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME,
"requesting-user-name",
- NULL, cupsUser());
+ NULL, pjob->user);
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL,
pjob->jobname);
More information about the samba-technical
mailing list