summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2008-07-16 12:37:48 -0400
committerJim McDonough <jmcd@samba.org>2008-07-16 12:37:48 -0400
commit6e6d4c1f5bd8c53e259a51ef1953f384a12bef7d (patch)
treed87fcdcf7e6dd6f365e3ba12eef09cadadcc11ab /source3/printing
parent065fb506a27f9a15884d5c3526ae1ae608da308b (diff)
downloadsamba-6e6d4c1f5bd8c53e259a51ef1953f384a12bef7d.tar.gz
samba-6e6d4c1f5bd8c53e259a51ef1953f384a12bef7d.tar.bz2
samba-6e6d4c1f5bd8c53e259a51ef1953f384a12bef7d.zip
Allow %u parameters for print job username - use advanced sub
Based on 3.0 and 3.2 patch from Bo Yang <boyang@novell.com> Bo, please verify this version works for you. (This used to be commit 9e6760cfeaf77e80df3b84004090d934f3c2d574)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/printing.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index a425b87907..1016e6183d 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -2439,9 +2439,11 @@ uint32 print_job_start(struct auth_serversupplied_info *server_info, int snum,
fstrcpy(pjob.jobname, jobname);
fstrcpy(pjob.user, lp_printjob_username(snum));
- standard_sub_basic(server_info->sanitized_username,
- pdb_get_domain(server_info->sam_account),
- pjob.user, sizeof(pjob.user)-1);
+ standard_sub_advanced(sharename, server_info->sanitized_username,
+ path, server_info->utok.gid,
+ server_info->sanitized_username,
+ pdb_get_domain(server_info->sam_account),
+ pjob.user, sizeof(pjob.user)-1);
/* ensure NULL termination */
pjob.user[sizeof(pjob.user)-1] = '\0';