s3-smbd: Use security_session_user_level() rather than nt_token_check_sid()
authorAndrew Bartlett <abartlet@samba.org>
Tue, 1 May 2012 07:13:34 +0000 (17:13 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 1 May 2012 23:00:12 +0000 (01:00 +0200)
commit221c0e479d99b81f8becd51d641a5979e420efdc
tree6fa88184a447ef8d14c0e693807389469087909a
parentd7f3c00b853761d929c3a21a6d64feff334944ce
s3-smbd: Use security_session_user_level() rather than nt_token_check_sid()

This allows the unix.whoami test to pass when configured as part of the AD DC.

The struct auth_session_info is slightly different in the AD DC configuration
when using auth_samba4.  In particular, there is a distinction between Guest
and Anonymous logins.

Andrew Bartlett
source3/smbd/trans2.c