mirror of
https://github.com/samba-team/samba.git
synced 2025-01-05 09:18:06 +03:00
61bedb4263
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. |
||
---|---|---|
.. | ||
auth_builtin.c | ||
auth_compat.c | ||
auth_domain.c | ||
auth_netlogond.c | ||
auth_ntlmssp.c | ||
auth_sam.c | ||
auth_script.c | ||
auth_server.c | ||
auth_unix.c | ||
auth_util.c | ||
auth_wbc.c | ||
auth_winbind.c | ||
auth.c | ||
pampass.c | ||
pass_check.c | ||
token_util.c |