diff options
author | Volker Lendecke <vl@samba.org> | 2008-04-30 17:42:39 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-05-05 18:28:59 +0200 |
commit | bec1dfab27be3db888eeb451b4547f16e08e93c3 (patch) | |
tree | f1b85618a0bf8ecd39a07d0039fb3b843477f6f1 /source3/printing | |
parent | a683625d7fe0be58da23b98828b445478df1606f (diff) | |
download | samba-bec1dfab27be3db888eeb451b4547f16e08e93c3.tar.gz samba-bec1dfab27be3db888eeb451b4547f16e08e93c3.tar.bz2 samba-bec1dfab27be3db888eeb451b4547f16e08e93c3.zip |
Remove "userdom_struct user" from "struct user_struct"
(This used to be commit 420de035237bb08bc470c9eb820f3da2edaa6805)
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/printing.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c index c5fe53f042..aa67f08d82 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -1989,7 +1989,8 @@ static bool is_owner(struct current_user *user, const char *servicename, return False; if ((vuser = get_valid_user_struct(user->vuid)) != NULL) { - return strequal(pjob->user, vuser->user.smb_name); + return strequal(pjob->user, + vuser->server_info->sanitized_username); } else { return strequal(pjob->user, uidtoname(user->ut.uid)); } @@ -2438,8 +2439,10 @@ uint32 print_job_start(struct current_user *user, int snum, char *jobname, NT_DE if ((vuser = get_valid_user_struct(user->vuid)) != NULL) { fstrcpy(pjob.user, lp_printjob_username(snum)); - standard_sub_basic(vuser->user.smb_name, vuser->user.domain, - pjob.user, sizeof(pjob.user)-1); + standard_sub_basic( + vuser->server_info->sanitized_username, + pdb_get_domain(vuser->server_info->sam_account), + pjob.user, sizeof(pjob.user)-1); /* ensure NULL termination */ pjob.user[sizeof(pjob.user)-1] = '\0'; } else { |