diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-07-19 11:57:05 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-07-20 09:17:14 +1000 |
commit | 662282106318e3f1f0bbcc7281f49ee5b3727f21 (patch) | |
tree | 615737d5c566c5ff5071d9db8227498f689e74f3 /source3/smbd/session.c | |
parent | 9d09b66f41cb4ab58bd4a6d83ecebb91805a4b5b (diff) | |
download | samba-662282106318e3f1f0bbcc7281f49ee5b3727f21.tar.gz samba-662282106318e3f1f0bbcc7281f49ee5b3727f21.tar.bz2 samba-662282106318e3f1f0bbcc7281f49ee5b3727f21.zip |
s3-auth Remove seperate guest boolean
Instead, we base our guest calculations on the presence or absense of the
authenticated users group in the token, ensuring that we have only
one canonical source of this important piece of authorization data
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/smbd/session.c')
-rw-r--r-- | source3/smbd/session.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/session.c b/source3/smbd/session.c index 9b8d11cc65..10f7defb81 100644 --- a/source3/smbd/session.c +++ b/source3/smbd/session.c @@ -33,6 +33,7 @@ #include "session.h" #include "auth.h" #include "../lib/tsocket/tsocket.h" +#include "../libcli/security/security.h" /******************************************************************** called when a session is created @@ -53,7 +54,7 @@ bool session_claim(struct smbd_server_connection *sconn, user_struct *vuser) /* don't register sessions for the guest user - its just too expensive to go through pam session code for browsing etc */ - if (vuser->session_info->unix_info->guest) { + if (security_session_user_level(vuser->session_info, NULL) < SECURITY_USER) { return True; } |