From: Michael Adam Date: Mon, 28 Jan 2013 15:45:30 +0000 (+0100) Subject: s3:auth: use new lp_idmap_default_range() instead of lp_idmap_gid() in create_token_f... X-Git-Tag: tevent-0.9.18~297 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e52fa7b7346c3afdaeb87c2af69ee71cb3cd1fb;p=thirdparty%2Fsamba.git s3:auth: use new lp_idmap_default_range() instead of lp_idmap_gid() in create_token_from_sid() Signed-off-by: Michael Adam Reviewed-by: Christian Ambach --- diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c index ac242f17f04..33b5507744f 100644 --- a/source3/auth/token_util.c +++ b/source3/auth/token_util.c @@ -758,11 +758,11 @@ static NTSTATUS create_token_from_sid(TALLOC_CTX *mem_ctx, num_gids = num_group_sids; for ( i=0; i= low) && (gids[i] <= high) ) + if ( lp_idmap_default_range(&low, &high) && (gids[i] >= low) && (gids[i] <= high) ) continue; gid_to_unix_groups_sid(gids[i], &unix_group_sid);