1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/source3/auth
Jeremy Allison 1b3b893454 s3: auth: Move the declaration of struct dom_sid tmp_sid to function level scope.
It's referred to outside of the {} brace scope it was defined in by
the following code:

                uid_to_unix_users_sid(*uid, &tmp_sid);
                user_sid = &tmp_sid;

As tmp_sid was going out of scope, user_sid was
being incorrectly set in the token sid list.

I think this *may* be the root cause of:

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10618

But even if not this is an obvious error that must
be fixed.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri May 27 11:28:18 CEST 2016 on sn-devel-144
2016-05-27 11:28:18 +02:00
..
auth_builtin.c s3:auth_builtin: anonymous authentication doesn't allow a password 2016-04-28 16:51:17 +02:00
auth_domain.c CVE-2016-2115: s3:auth_domain: use SMB_SIGNING_IPC_DEFAULT 2016-04-12 19:25:26 +02:00
auth_generic.c Changing log level of two entries to DBG_NOTICE 2015-11-04 00:46:15 +01:00
auth_ntlmssp.c s3-auth: Fix a possible null pointer dereference 2015-07-17 14:04:01 +02:00
auth_sam.c auth: Provide a way to use the auth stack for winbindd authentication 2014-06-11 10:18:26 +02:00
auth_samba4.c s3-auth: check for return code of cli_credentials_set_machine_account(). 2016-03-17 20:43:17 +01:00
auth_script.c More strlcat/strlcpy truncate checks. 2012-03-30 21:26:07 +02:00
auth_unix.c s3-auth: Pass talloc context to make_server_info_pw(). 2014-02-05 11:41:25 +13:00
auth_util.c CVE-2016-2111: s3:auth: implement "raw NTLMv2 auth" checks 2016-04-12 19:25:24 +02:00
auth_wbc.c
auth_winbind.c BUG 9817: Fix 'map untrusted to domain' with NTLMv2. 2013-04-24 17:14:48 +02:00
auth.c dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
check_samsec.c Convert all uses of uint32/16/8 to _t in source3/auth. 2015-05-13 19:11:24 +02:00
pampass.c dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
pass_check.c auth: Remove support for HAVE_TRUNCATED_SALT from pass_check.c 2014-04-15 12:32:09 +02:00
proto.h Convert all uses of uint32/16/8 to _t in source3/auth. 2015-05-13 19:11:24 +02:00
server_info_sam.c s3-auth: Steal the memory to avoid duplication. 2014-03-13 15:08:26 +01:00
server_info.c idl: Rename "principle" to "principal_name" 2016-02-02 08:42:09 +01:00
token_util.c s3: auth: Move the declaration of struct dom_sid tmp_sid to function level scope. 2016-05-27 11:28:18 +02:00
user_info.c s3-auth: Finally change make_user_info_*() use a parent talloc context 2014-04-02 11:05:46 +02:00
user_krb5.c Changing log level of two entries to DBG_NOTICE 2015-11-04 00:46:15 +01:00
user_util.c s3:auth: add some const to user_in_list() 2014-11-14 23:27:05 +01:00
wscript_build build: get rid of vars=locals() in source3/auth/wscript_build 2013-09-24 23:00:31 +02:00