From f236c539ad39932ee3c9a5df0276147a45dd1a42 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 26 Jul 2011 11:07:12 +1000 Subject: s3-winbindd: add support for idmap type WBC_ID_TYPE_BOTH this allows the s3 code to understand and cache responses from the s4 winbindd which may include a single SID mapped to both a uid and a gid Pair-Programmed-With: Andrew Bartlett Signed-off-by: Michael Adam Autobuild-User: Michael Adam Autobuild-Date: Fri Sep 23 01:47:54 CEST 2011 on sn-devel-104 --- source3/winbindd/winbindd_sids_to_xids.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/winbindd/winbindd_sids_to_xids.c') diff --git a/source3/winbindd/winbindd_sids_to_xids.c b/source3/winbindd/winbindd_sids_to_xids.c index d08064fbf3..b416e3a338 100644 --- a/source3/winbindd/winbindd_sids_to_xids.c +++ b/source3/winbindd/winbindd_sids_to_xids.c @@ -284,6 +284,12 @@ NTSTATUS winbindd_sids_to_xids_recv(struct tevent_req *req, &state->non_cached[num_non_cached], unix_id); break; + case WBC_ID_TYPE_BOTH: + type = 'B'; + idmap_cache_set_sid2both( + &state->non_cached[num_non_cached], + unix_id); + break; default: found = false; } -- cgit