s4:auth Change auth_generate_session_info to take flags
authorAndrew Bartlett <abartlet@samba.org>
Mon, 19 Apr 2010 05:51:57 +0000 (15:51 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 20 May 2010 07:39:10 +0000 (17:39 +1000)
commit9c6b637ce8a750fa2fef6a5d3a303bf9e6c4eea5
tree1526cb9826169a6ea4162b5c3f13f279cda4ff7b
parent3ff2766231625863140434bab18b27d5105deb3c
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