From 110053ee13ef06072dad4ae7b94cc49b55311884 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 22 Jun 2010 14:09:57 +0200 Subject: [PATCH] s3:idmap_ad: use range from idmap_domain in idmap_ad_sids_to_unixids() --- source3/winbindd/idmap_ad.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source3/winbindd/idmap_ad.c b/source3/winbindd/idmap_ad.c index 6fdb051aee50..d9b394ddf572 100644 --- a/source3/winbindd/idmap_ad.c +++ b/source3/winbindd/idmap_ad.c @@ -649,11 +649,9 @@ again: DEBUG(1, ("Could not get unix ID\n")); continue; } - if ((id == 0) || - (ctx->filter_low_id && (id < ctx->filter_low_id)) || - (ctx->filter_high_id && (id > ctx->filter_high_id))) { + if (!idmap_unix_id_is_in_range(id, dom)) { DEBUG(5, ("Requested id (%u) out of range (%u - %u). Filtered!\n", - id, ctx->filter_low_id, ctx->filter_high_id)); + id, dom->low_id, dom->high_id)); continue; } -- 2.34.1