summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-02-05 06:37:27 +0000
committerGerald Carter <jerry@samba.org>2003-02-05 06:37:27 +0000
commit0adfd3d4180527a50a747df9e025f44071fad5c8 (patch)
tree920e261fa0fba2a4d1eb6c99b0398dd01efea155 /source3
parent42edbfe9180386fbe3e1a578771fb90bf7d0f2cd (diff)
downloadsamba-0adfd3d4180527a50a747df9e025f44071fad5c8.tar.gz
samba-0adfd3d4180527a50a747df9e025f44071fad5c8.tar.bz2
samba-0adfd3d4180527a50a747df9e025f44071fad5c8.zip
CUPS patch to log client name
(This used to be commit d4168c327bc42efc392561aeeef4edd702b3d653)
Diffstat (limited to 'source3')
-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);