idmap_hash: provide ID_TYPE_BOTH mappings also for unixids_to_sids
commit9a24570d3d69f51b6d50bb04b739815ec67c1a3d
authorStefan Metzmacher <metze@samba.org>
Thu, 21 Mar 2019 15:38:35 +0000 (21 16:38 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 10 Mar 2023 10:38:37 +0000 (10 10:38 +0000)
treefbe2800c085031eadc96eadb2e208ebf3eb9c26d
parenta9583b5f96fe3fbf9c1ee545fa868fd705aef3e0
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>
source3/winbindd/idmap_hash/idmap_hash.c