s3:idmap_ad: use range from idmap_domain in idmap_ad_sids_to_unixids()
authorMichael Adam <obnox@samba.org>
Tue, 22 Jun 2010 12:09:57 +0000 (14:09 +0200)
committerMichael Adam <obnox@samba.org>
Sat, 14 Aug 2010 00:10:56 +0000 (02:10 +0200)
source3/winbindd/idmap_ad.c

index 5472edc2203c7a9ad36fd9110a48a636922abc75..26d71401536473b6c37030d3190788c6b90b5e84 100644 (file)
@@ -654,11 +654,9 @@ again:
                        DEBUG(1, ("Could not get unix ID\n"));
                        continue;
                }
                        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",
                        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;
                }
 
                        continue;
                }