Change to guest logon code.
authorAndrew Bartlett <abartlet@samba.org>
Thu, 8 Nov 2001 22:19:01 +0000 (22:19 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 8 Nov 2001 22:19:01 +0000 (22:19 +0000)
commit55dfb66079333acd8e0aee91c0ee90d0a413a8e6
treedcd7c178dbb2df6b578123bd9ee7fe78e38e979e
parentf56a3ea612beded266c614511aa4c451639cbe9a
Change to guest logon code.

This changes the way we process guest logons - we now treat them as normal
logons, but set the 'guest' flag.  In particular this is needed becouse Win2k
will do an NTLMSSP login with username "", therefore missing our previous guest
connection code - this is getting a pain to do as a special case all over the
shop.

Tridge:  We don't seem to be setting a guest bit for NTLMSSP, in either the
anonymous or authenticated case, can you take a look at this?

Also some cleanups in the check_password() code that should make some of the
debugs clearer.

Various other minor cleanups:

 - change the session code to just take a vuser, rather than having to do a
   vuid lookup on vuser.vuid

 - Change some of the global_client_caps linking

 - Better debug in authorise_login(): show the vuid.

Andrew Bartlett
(This used to be commit 62f4e4bd0aef9ade653b3f8d575d2864c166ab4d)
source3/auth/auth.c
source3/auth/auth_util.c
source3/rpc_server/srv_netlog_nt.c
source3/rpc_server/srv_pipe.c
source3/smbd/auth.c
source3/smbd/auth_util.c
source3/smbd/password.c
source3/smbd/reply.c
source3/smbd/session.c
source3/smbd/sesssetup.c