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)
committerStefan Metzmacher <metze@samba.org>
Tue, 22 Feb 2011 18:32:53 +0000 (19:32 +0100)
commit6c8509fab3b0a2fde777a7ef4e52a0014e2f2caf
tree4aa1ece03bbdf105145eef17c6ba9a673ce177f3
parent477e997d2eb2692041fb928bb8e5a0f2a5c2684f
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/user_krb5.c
source3/include/proto.h
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