1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-05 09:18:06 +03:00
samba-mirror/source3/auth
Steven Danneman 61bedb4263 s3: fix guest auth when winbindd is running
This fix is very subtle.  If a server is configured with "security = share"
and "guest ok = yes" and winbindd is running authorization will fail during
tree connect.

This is due to our inability to map the guest sid S-1-5-21-X-501 to a uid
through sid_to_uid().  Winbindd is unaware of the hard coded mapping
between this sid and whatever uid the name in lp_guestaccount() is assigned.
So sid_to_uid() fails and we exit create_token_from_username() without
ever calling pdb_getsampwsid() which IS aware of the hard coded mapping.

This patch just reorganizes the code, moving sid_to_uid() down to the
block of code in which it is needed, avoiding this early failure.
2009-02-26 19:47:43 -08:00
..
auth_builtin.c Add a mem_ctx argument to make_server_info_guest() 2008-05-10 11:16:59 +02:00
auth_compat.c Remove the static "chal" from ntlmssp.c:get_challenge() 2009-02-21 14:04:14 +01:00
auth_domain.c Simply our main loop processing. A lot :-). Correctly use events for all the previous "special" cases. 2008-10-03 14:18:35 -07:00
auth_netlogond.c Fix a valgrind error: rpc_bind talloc_move()s the auth struct 2009-02-04 18:11:46 +01:00
auth_ntlmssp.c Fix the build on Solaris 2009-02-21 18:55:35 +01:00
auth_sam.c Fix some nonempty blank lines 2009-02-10 21:55:13 +01:00
auth_script.c r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
auth_server.c Make cli_negprot return NTSTATUS instead of bool 2008-12-19 10:28:30 +01:00
auth_unix.c Remove Get_Pwnam and its associated static variable 2007-12-19 21:09:10 +01:00
auth_util.c s3: fix guest auth when winbindd is running 2009-02-26 19:47:43 -08:00
auth_wbc.c s3: Fix 'assignment differ in signedness' warning 2009-02-25 00:14:23 -08:00
auth_winbind.c Rename server_info->was_mapped to server_info->nss_token 2008-05-07 14:47:29 +02:00
auth.c Fix some nonempty blank lines 2009-02-21 14:04:16 +01:00
pampass.c S3: Fixes for coverity issues. 2009-02-10 14:43:14 -08:00
pass_check.c Correctly define prototypes for accessor functions. 2007-12-17 17:13:31 -08:00
token_util.c Make memcache_add_talloc NULL out the source pointer 2008-11-14 20:27:46 +01:00