s3-auth use create_local_token() to transform server_info -> session_info
authorAndrew Bartlett <abartlet@samba.org>
Fri, 11 Feb 2011 00:50:37 +0000 (11:50 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 4 Apr 2011 20:32:07 +0000 (06:32 +1000)
commit17d8f0ad30847bb940f645ee1817d782ddaaee74
tree1f1547798f45e3da1f0fecece628b4b07a95c0ff
parent2ec48260ee377e499fe7f0fc2ca18b8a078c6aaa
s3-auth use create_local_token() to transform server_info -> session_info

Before a auth_serversupplied_info struct can be used for
authorization, the local groups and privileges must be calculated.
create_local_token() now copies the server_info, and then sets the
calulated token and unix groups.

Soon, it will also transform the result into an expanded struct
auth_session_info.  Until then, the variable name (server_info vs
session_info provides a clue to the developer about what information
has been entered in the structure).

By moving the calls to create_local_token within the codebase, we
remove duplication, and ensure that the session key (where modified)
is consistently copied into the new structure.

Andrew Bartlett
source3/auth/auth_ntlmssp.c
source3/auth/auth_util.c
source3/auth/proto.h
source3/auth/user_krb5.c
source3/rpc_server/dcesrv_gssapi.c
source3/rpc_server/rpc_server.c
source3/smbd/service.c
source3/smbd/sesssetup.c
source3/smbd/smb2_sesssetup.c