s4:auth Change auth_generate_session_info to take flags s4u2self
authorAndrew Bartlett <abartlet@samba.org>
Mon, 19 Apr 2010 05:51:57 +0000 (15:51 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 19 Apr 2010 11:32:51 +0000 (21:32 +1000)
commit77f8840b3980aae2e8103a7d4df7468b41856b4e
treedbd099c34fbd97ad84e4ef14ba498cb6067beb52
parent60bd182fbc944cc54f9efac0034d1c2ef54879fb
s4:auth Change auth_generate_session_info to take flags

This allows us to control what groups should be added in what use
cases, and in particular to more carefully control the introduction of
the 'authenticated' group.

In particular, in the 'service_named_pipe' protocol, we do not have
control over the addition of the authenticated users group, so we key
of 'is this user the anonymous SID'.

This also takes more care to allocate the right length ptoken->sids

Andrew Bartlett
source4/auth/auth.h
source4/auth/gensec/gensec.c
source4/auth/ntlm/auth_simple.c
source4/auth/session.c
source4/auth/session.h
source4/auth/system_session.c
source4/dsdb/samdb/ldb_modules/operational.c
source4/dsdb/samdb/samdb.c
source4/smb_server/smb/sesssetup.c
source4/smbd/service_named_pipe.c