mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +03:00
idmap_hash: provide ID_TYPE_BOTH mappings also for unixids_to_sids
While sids_to_unixids returns ID_TYPE_BOTH mappings,
unixids_to_sids() returns the callers asked for, which
fills gencache with the non ID_TYPE_BOTH mappings.
As a result also the sids_to_unixids fast path via
gencache won't return ID_TYPE_BOTH mappings.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15319
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 9a24570d3d
)
This commit is contained in:
committed by
Jule Anger
parent
fd7e0aaa19
commit
e804feaf76
@ -224,6 +224,7 @@ static NTSTATUS unixids_to_sids(struct idmap_domain *dom,
|
||||
if (!hashed_domains[h_domain].sid)
|
||||
continue;
|
||||
|
||||
ids[i]->xid.type = ID_TYPE_BOTH;
|
||||
sid_compose(ids[i]->sid, hashed_domains[h_domain].sid, h_rid);
|
||||
ids[i]->status = ID_MAPPED;
|
||||
}
|
||||
|
Reference in New Issue
Block a user