summaryrefslogtreecommitdiff
path: root/source3/auth
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/auth
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/auth')
-rw-r--r--source3/auth/auth_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index f41809d58d..11b220eec6 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -608,7 +608,8 @@ NTSTATUS create_local_token(TALLOC_CTX *mem_ctx,
for (i=1; i<t->num_sids; i++) {
- if (ids[i].type != WBC_ID_TYPE_GID) {
+ if (ids[i].type != WBC_ID_TYPE_GID &&
+ ids[i].type != WBC_ID_TYPE_BOTH) {
DEBUG(10, ("Could not convert SID %s to gid, "
"ignoring it\n",
sid_string_dbg(&t->sids[i])));