From: Michael Adam Date: Tue, 22 Jun 2010 11:13:57 +0000 (+0200) Subject: s3:idmap_ad: use range from idmap_domain in idmap_ad_unixids_to_sids() X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=f4605eb8dee84caf920b0c68913b584e2a4bac1b s3:idmap_ad: use range from idmap_domain in idmap_ad_unixids_to_sids() --- diff --git a/source3/winbindd/idmap_ad.c b/source3/winbindd/idmap_ad.c index 5c29ba0b223d..6fdb051aee50 100644 --- a/source3/winbindd/idmap_ad.c +++ b/source3/winbindd/idmap_ad.c @@ -453,11 +453,9 @@ again: 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; }