diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-07-18 11:31:49 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-07-20 09:17:12 +1000 |
commit | 4363b71f62b136d26b8e1c46ec90b4652751ccac (patch) | |
tree | a99cb52188ed52222fa92c0bddb4fd3730cd7e27 /source3/auth | |
parent | 74815e08d94519708a9c41df698fbd184574827c (diff) | |
download | samba-4363b71f62b136d26b8e1c46ec90b4652751ccac.tar.gz samba-4363b71f62b136d26b8e1c46ec90b4652751ccac.tar.bz2 samba-4363b71f62b136d26b8e1c46ec90b4652751ccac.zip |
s3-auth Add comments to copy_session_info_serverinfo_guest()
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/auth_util.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index b69326a156..e27153e445 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -966,7 +966,7 @@ NTSTATUS make_session_info_from_username(TALLOC_CTX *mem_ctx, * - nss_token (not needed because the only read doesn't happen * for the GUEST user, as this routine populates ->security_token * - * - extra (not needed because the guest account mut have a valid RID per the output of get_guest_info3()) + * - extra (not needed because the guest account must have valid RIDs per the output of get_guest_info3()) * * - The 'server_info' parameter allows the missing 'info3' to be copied across. */ @@ -987,7 +987,10 @@ static struct auth_serversupplied_info *copy_session_info_serverinfo_guest(TALLO dst->guest = src->unix_info->guest; dst->system = src->unix_info->system; - /* This element must be provided to convert back to an auth_serversupplied_info */ + /* This element must be provided to convert back to an + * auth_serversupplied_info. This needs to be from hte + * auth3_session_info because the group values in particular + * may change during create_local_token() processing */ SMB_ASSERT(src->unix_token); dst->utok.uid = src->unix_token->uid; dst->utok.gid = src->unix_token->gid; |