summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_sids_to_xids.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-07-26 11:07:12 +1000
committerMichael Adam <obnox@samba.org>2011-09-23 01:47:54 +0200
commitf236c539ad39932ee3c9a5df0276147a45dd1a42 (patch)
tree76aad49e3863f8292f290e9258968cb5d5677d79 /source3/winbindd/winbindd_sids_to_xids.c
parentdbbb69e5722075e6c791d350484add378079b1ff (diff)
downloadsamba-f236c539ad39932ee3c9a5df0276147a45dd1a42.tar.gz
samba-f236c539ad39932ee3c9a5df0276147a45dd1a42.tar.bz2
samba-f236c539ad39932ee3c9a5df0276147a45dd1a42.zip
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 <abartlet@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Sep 23 01:47:54 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/winbindd/winbindd_sids_to_xids.c')
-rw-r--r--source3/winbindd/winbindd_sids_to_xids.c6
1 files changed, 6 insertions, 0 deletions
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;
}