mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
r17378: Fix the issues people have been having with mapped
users (username map) and failure to connect to a
share. Essentially, even on a standalone system
we were going into the create_token_from_username()
code (I think by mistake) if the username was mapped.
Fixes bug #3991.
Volker & Jerry - please go over this with a very careful eye
and let me know if this isn't correct (I think it is,
but this isn't my code and it's a dangerous area for
me to be playing in :-).
Jeremy
(This used to be commit 0b5b2b53ec
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
f569db1c06
commit
dca7d08e61
@ -956,8 +956,8 @@ NTSTATUS create_local_token(auth_serversupplied_info *server_info)
|
||||
* mapped to some local unix user.
|
||||
*/
|
||||
|
||||
if (((lp_server_role() == ROLE_DOMAIN_MEMBER) && !winbind_ping()) ||
|
||||
(server_info->was_mapped)) {
|
||||
if ((lp_server_role() == ROLE_DOMAIN_MEMBER) &&
|
||||
(server_info->was_mapped || !winbind_ping())) {
|
||||
status = create_token_from_username(server_info,
|
||||
server_info->unix_name,
|
||||
server_info->guest,
|
||||
|
Reference in New Issue
Block a user