diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-07-18 12:58:25 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-07-20 09:17:13 +1000 |
commit | 128ae06a619b2c50cc9379053abb18277e814747 (patch) | |
tree | f3c7c0639a4adcbcff13cbfb1322cee0b08cba1a /source3/printing | |
parent | 8d72e612ac2845cd873c4fd614456fe8749db130 (diff) | |
download | samba-128ae06a619b2c50cc9379053abb18277e814747.tar.gz samba-128ae06a619b2c50cc9379053abb18277e814747.tar.bz2 samba-128ae06a619b2c50cc9379053abb18277e814747.zip |
s3-auth use auth_user_info not netr_SamInfo3 in auth3_session_info
This makes auth3_session_info identical to auth_session_info
The logic to convert the info3 to a struct auth_user_info is
essentially moved up the stack from the named pipe proxy in
source3/rpc_server to create_local_token().
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 2 | ||||
-rw-r--r-- | source3/printing/printing.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 0023515bb1..7e2eaaf304 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -1803,7 +1803,7 @@ bool print_access_check(const struct auth3_session_info *session_info, if (!NT_STATUS_IS_OK(status) && (token_contains_name_in_list(uidtoname(session_info->unix_token->uid), - session_info->info3->base.domain.string, + session_info->info->domain_name, NULL, session_info->security_token, lp_printer_admin(snum)))) { talloc_destroy(mem_ctx); diff --git a/source3/printing/printing.c b/source3/printing/printing.c index a2d5c5373b..07aaea20c6 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -2843,7 +2843,7 @@ WERROR print_job_start(const struct auth3_session_info *server_info, standard_sub_advanced(sharename, server_info->unix_info->sanitized_username, path, server_info->unix_token->gid, server_info->unix_info->sanitized_username, - server_info->info3->base.domain.string, + server_info->info->domain_name, pjob.user, sizeof(pjob.user)-1); /* ensure NULL termination */ pjob.user[sizeof(pjob.user)-1] = '\0'; |