s4:auth Change auth_generate_session_info to take an auth context
authorAndrew Bartlett <abartlet@samba.org>
Tue, 13 Apr 2010 02:00:06 +0000 (12:00 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 14 Apr 2010 00:30:51 +0000 (10:30 +1000)
commit589a42e2da7d7cd382deb94c57b0c6dbca269e55
tree843f90acec386e763b37a3dda77d986cb4ead6de
parent4e2384e2426745023553afb21270165872c61b02
s4:auth Change auth_generate_session_info to take an auth context

The auth context was in the past only for NTLM authentication, but we
need a SAM, an event context and and loadparm context for calculating
the local groups too, so re-use that infrustructure we already have in
place.

However, to avoid problems where we may not have an auth_context (in
torture tests, for example), allow a simpler 'session_info' to be
generated, by passing this via an indirection in gensec and an
generate_session_info() function pointer in the struct auth_context.

In the smb_server (for old-style session setups) we need to change the
async context to a new 'struct sesssetup_context'.  This allows us to
use the auth_context in processing the authentication reply .

Andrew Bartlett
15 files changed:
source4/auth/auth.h
source4/auth/gensec/gensec.c
source4/auth/gensec/gensec.h
source4/auth/gensec/gensec_gssapi.c
source4/auth/gensec/gensec_krb5.c
source4/auth/ntlm/auth.c
source4/auth/ntlm/auth_sam.c
source4/auth/ntlm/auth_simple.c
source4/auth/ntlmssp/ntlmssp_server.c
source4/auth/sam.c
source4/auth/session.c
source4/auth/session.h
source4/auth/system_session.c
source4/smb_server/smb/sesssetup.c
source4/smbd/service_named_pipe.c