summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-06-22 14:09:57 +0200
committerMichael Adam <obnox@samba.org>2010-08-14 02:10:56 +0200
commitd515d7fe49287b62a42aab5a8261745d27e349c9 (patch)
tree33be715d7a1b86e4f9ebb97c3d2f51f8c0e3b186
parent96607d9543ebc1b485fa701db8f4f11fd501b750 (diff)
downloadsamba-d515d7fe49287b62a42aab5a8261745d27e349c9.tar.gz
samba-d515d7fe49287b62a42aab5a8261745d27e349c9.tar.xz
samba-d515d7fe49287b62a42aab5a8261745d27e349c9.zip
s3:idmap_ad: use range from idmap_domain in idmap_ad_sids_to_unixids()
-rw-r--r--source3/winbindd/idmap_ad.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/winbindd/idmap_ad.c b/source3/winbindd/idmap_ad.c
index 5472edc2203..26d71401536 100644
--- a/source3/winbindd/idmap_ad.c
+++ b/source3/winbindd/idmap_ad.c
@@ -654,11 +654,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;
}