summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-01-28 16:45:30 +0100
committerMichael Adam <obnox@samba.org>2013-02-05 17:36:33 +0100
commit4e52fa7b7346c3afdaeb87c2af69ee71cb3cd1fb (patch)
tree7c5770ab28b37b7b2e173be6539f2988bf0e9b4f /source3/auth
parent58b302d76a83880744d637f95b4aa7f80c040ea8 (diff)
downloadsamba-4e52fa7b7346c3afdaeb87c2af69ee71cb3cd1fb.tar.gz
samba-4e52fa7b7346c3afdaeb87c2af69ee71cb3cd1fb.tar.bz2
samba-4e52fa7b7346c3afdaeb87c2af69ee71cb3cd1fb.zip
s3:auth: use new lp_idmap_default_range() instead of lp_idmap_gid() in create_token_from_sid()
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/token_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c
index ac242f17f0..33b5507744 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<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);