diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-07-26 13:37:36 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-08-03 18:48:04 +1000 |
commit | 9a45bf39527d9c2dcd8d2debf214196100a3efce (patch) | |
tree | 080e2c9bc12348cd4a7f96f5ce9deb1cc55ed741 /source3/rpc_server | |
parent | 8b983d232648944c18fe878a3ace0f58658ec24d (diff) | |
download | samba-9a45bf39527d9c2dcd8d2debf214196100a3efce.tar.gz samba-9a45bf39527d9c2dcd8d2debf214196100a3efce.tar.bz2 samba-9a45bf39527d9c2dcd8d2debf214196100a3efce.zip |
s3-auth set session_info->sanitized_username in create_local_token()
Rather than passing this value around the callers, and eventually
setting it in register_existing_vuid(), we simply pass it to
create_local_token(). This also removes the need for
auth_ntlmssp_get_username().
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/rpc_server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_server/rpc_server.c b/source3/rpc_server/rpc_server.c index 0caf20a990..b03715c024 100644 --- a/source3/rpc_server/rpc_server.c +++ b/source3/rpc_server/rpc_server.c @@ -123,7 +123,8 @@ static int make_server_pipes_struct(TALLOC_CTX *mem_ctx, * Some internal functions need a local token to determine access to * resources. */ - status = create_local_token(p, server_info, &session_info->session_key, &p->session_info); + status = create_local_token(p, server_info, &session_info->session_key, info3->base.account_name.string, + &p->session_info); talloc_free(server_info); if (!NT_STATUS_IS_OK(status)) { DEBUG(1, ("Failed to init local auth token\n")); |