s3:auth: use new lp_idmap_default_range() instead of lp_idmap_gid() in create_token_f...
authorMichael Adam <obnox@samba.org>
Mon, 28 Jan 2013 15:45:30 +0000 (16:45 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 5 Feb 2013 16:36:33 +0000 (17:36 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
source3/auth/token_util.c

index ac242f17f047d2d0e6120aeb30833cd606ed0fe5..33b5507744fefce9f429eca8da332f259162f78c 100644 (file)
@@ -758,11 +758,11 @@ static NTSTATUS create_token_from_sid(TALLOC_CTX *mem_ctx,
 
        num_gids = num_group_sids;
        for ( i=0; i<num_gids; i++ ) {
-               gid_t high, low;
+               uint32_t high, low;
 
                /* don't pickup anything managed by Winbind */
 
-               if ( lp_idmap_gid(&low, &high) && (gids[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);