summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-02-05 06:37:54 +0000
committerGerald Carter <jerry@samba.org>2003-02-05 06:37:54 +0000
commit9a42f660fb5256ab92e4e1bfcdf6b497e0274ea3 (patch)
tree44221b7d5c097d503317a8ba982eb928d1f40e24
parentd62f32ceeb961c29fd91f82f2f09a591926b9338 (diff)
downloadsamba-9a42f660fb5256ab92e4e1bfcdf6b497e0274ea3.tar.gz
samba-9a42f660fb5256ab92e4e1bfcdf6b497e0274ea3.tar.bz2
samba-9a42f660fb5256ab92e4e1bfcdf6b497e0274ea3.zip
CUPS patch to log client name
(This used to be commit 364a4de6dfb93353fe0742c259c810ffc7e1eab6)
-rw-r--r--source3/printing/print_cups.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c
index 0c86c69ffd..c283937556 100644
--- a/source3/printing/print_cups.c
+++ b/source3/printing/print_cups.c
@@ -734,6 +734,10 @@ cups_job_submit(int snum, struct printjob *pjob)
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name",
NULL, pjob->user);
+ ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME,
+ "job-originating-host-name", NULL,
+ get_remote_machine_name());
+
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL,
pjob->jobname);