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/auth/auth_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/auth') 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; inum_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]))); -- cgit