From 662282106318e3f1f0bbcc7281f49ee5b3727f21 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 19 Jul 2011 11:57:05 +1000 Subject: 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 --- source3/auth/auth_util.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source3/auth') diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index d5ca1a206b..b0deb2c8ab 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -504,7 +504,6 @@ NTSTATUS create_local_token(TALLOC_CTX *mem_ctx, return NT_STATUS_NO_MEMORY; } - session_info->unix_info->guest = server_info->guest; session_info->unix_info->system = server_info->system; if (session_key) { @@ -993,8 +992,8 @@ static struct auth_serversupplied_info *copy_session_info_serverinfo_guest(TALLO /* This element must be provided to convert back to an auth_serversupplied_info */ SMB_ASSERT(src->unix_info); - dst->guest = src->unix_info->guest; - dst->system = src->unix_info->system; + dst->guest = true; + dst->system = false; /* This element must be provided to convert back to an * auth_serversupplied_info. This needs to be from hte -- cgit