winbindd: allow idmap backends to mark entries with ID_[TYPE_WB_]REQUIRE_TYPE
authorStefan Metzmacher <metze@samba.org>
Tue, 15 Sep 2020 15:26:11 +0000 (17:26 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 23 Oct 2020 03:25:37 +0000 (03:25 +0000)
commit493f5d6b078e0b0f80d1ef25043e2834cb4fcb87
tree7d781afcc1c30c0b480720a6ffec3ca812cecc8f
parentc55f4f37589130a0d8952489da175bbcf53f6748
winbindd: allow idmap backends to mark entries with ID_[TYPE_WB_]REQUIRE_TYPE

This must only be used between winbindd parent and child!
It must not leak into outside world.

Some backends require ID_TYPE_UID or ID_TYPE_GID as type_hint,
while others may only need ID_TYPE_BOTH in order to validate that
the domain exists.

This will allow us to skip the wb_lookupsids_send/recv in the winbindd parent
in future and only do that on demand.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14539

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
librpc/idl/idmap.idl
source3/passdb/lookup_sid.c
source3/winbindd/idmap_autorid.c
source3/winbindd/idmap_ldap.c
source3/winbindd/idmap_rw.c
source3/winbindd/idmap_tdb_common.c
source3/winbindd/wb_sids2xids.c
source3/winbindd/winbindd_dual_srv.c
source3/winbindd/winbindd_getgroups.c