From 92895379934b660affa70cd406e40719d429ae2a Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 15 Jul 2011 15:55:31 +1000 Subject: s3-auth Use struct auth_user_info_unix for unix_name and sanitized_username This is closer to the layout of struct auth_session_info in auth.idl Andrew Bartlett Signed-off-by: Andrew Tridgell --- source3/printing/printing.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/printing') diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 50ef75b8ef..a2d5c5373b 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -2252,7 +2252,7 @@ static bool is_owner(const struct auth3_session_info *server_info, if (!pjob || !server_info) return False; - return strequal(pjob->user, server_info->sanitized_username); + return strequal(pjob->user, server_info->unix_info->sanitized_username); } /**************************************************************************** @@ -2840,9 +2840,9 @@ WERROR print_job_start(const struct auth3_session_info *server_info, fstrcpy(pjob.clientmachine, clientmachine); fstrcpy(pjob.user, lp_printjob_username(snum)); - standard_sub_advanced(sharename, server_info->sanitized_username, + standard_sub_advanced(sharename, server_info->unix_info->sanitized_username, path, server_info->unix_token->gid, - server_info->sanitized_username, + server_info->unix_info->sanitized_username, server_info->info3->base.domain.string, pjob.user, sizeof(pjob.user)-1); /* ensure NULL termination */ -- cgit