mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
if we know that the SID is local then don't try via winbindd
(This used to be commit 1a8f3ba3ab
)
This commit is contained in:
parent
85d7e70d1f
commit
8fe1df84e1
@ -593,6 +593,11 @@ BOOL sid_to_uid(DOM_SID *psid, uid_t *puid, enum SID_NAME_USE *sidtype)
|
||||
{
|
||||
fstring sid_str;
|
||||
|
||||
/* if we know its local then don't try winbindd */
|
||||
if (sid_compare_domain(&global_sam_sid, psid) == 0) {
|
||||
return local_sid_to_uid(puid, psid, sidtype);
|
||||
}
|
||||
|
||||
/* (tridge) I commented out the slab of code below in order to support foreign SIDs
|
||||
Do we really need to validate the type of SID we have in this case?
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user