summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-06-22 13:13:57 +0200
committerMichael Adam <obnox@samba.org>2010-08-14 02:10:55 +0200
commit96607d9543ebc1b485fa701db8f4f11fd501b750 (patch)
tree63d715f3653d8de7150d2d24a67e5a2c53257b23 /source3/winbindd
parentf07049495d81dc4ad2df440f274d470ac41b83c9 (diff)
downloadsamba-96607d9543ebc1b485fa701db8f4f11fd501b750.tar.gz
samba-96607d9543ebc1b485fa701db8f4f11fd501b750.tar.bz2
samba-96607d9543ebc1b485fa701db8f4f11fd501b750.zip
s3:idmap_ad: use range from idmap_domain in idmap_ad_unixids_to_sids()
Diffstat (limited to 'source3/winbindd')
-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 37095c12c8..5472edc220 100644
--- a/source3/winbindd/idmap_ad.c
+++ b/source3/winbindd/idmap_ad.c
@@ -458,11 +458,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;
}