mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
Expand the comment explaining why user_in_group_sid is
not reliable for winbindd users from foreign domains. Jeremy.
This commit is contained in:
parent
b79eff843b
commit
f47b220ce1
@ -1297,7 +1297,12 @@ static bool uid_entry_in_group( canon_ace *uid_ace, canon_ace *group_ace )
|
||||
return False;
|
||||
}
|
||||
|
||||
/* notice that this is not reliable for users exported by winbindd! */
|
||||
/*
|
||||
* user_in_group_sid() uses create_token_from_username()
|
||||
* which creates an artificial NT token given just a username,
|
||||
* so this is not reliable for users from foreign domains
|
||||
* exported by winbindd!
|
||||
*/
|
||||
return user_in_group_sid(u_name, &group_ace->trustee);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user