summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-06-22 14:12:14 +0200
committerMichael Adam <obnox@samba.org>2010-08-14 02:10:56 +0200
commit264910b06f71ed76df8ce432d320c33ec9dac42f (patch)
treeb11b63feac7d37bbde5dbd2cd9eeac3473e33fef
parentd515d7fe49287b62a42aab5a8261745d27e349c9 (diff)
downloadsamba-264910b06f71ed76df8ce432d320c33ec9dac42f.tar.gz
samba-264910b06f71ed76df8ce432d320c33ec9dac42f.tar.bz2
samba-264910b06f71ed76df8ce432d320c33ec9dac42f.zip
s3:idmap_ad: remove unused filter_low_id and filter_high_id from idmap_ad_context
The filter range from the idmap_domain is used now.
-rw-r--r--source3/winbindd/idmap_ad.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/source3/winbindd/idmap_ad.c b/source3/winbindd/idmap_ad.c
index 26d7140153..782578e2e3 100644
--- a/source3/winbindd/idmap_ad.c
+++ b/source3/winbindd/idmap_ad.c
@@ -48,8 +48,6 @@
} while (0)
struct idmap_ad_context {
- uint32_t filter_low_id;
- uint32_t filter_high_id;
ADS_STRUCT *ads;
struct posix_schema *ad_schema;
enum wb_posix_mapping ad_map_type; /* WB_POSIX_MAP_UNKNOWN */
@@ -202,7 +200,6 @@ static NTSTATUS idmap_ad_initialize(struct idmap_domain *dom,
{
struct idmap_ad_context *ctx;
char *config_option;
- const char *range = NULL;
const char *schema_mode = NULL;
if ( (ctx = TALLOC_ZERO_P(dom, struct idmap_ad_context)) == NULL ) {
@@ -216,17 +213,6 @@ static NTSTATUS idmap_ad_initialize(struct idmap_domain *dom,
return NT_STATUS_NO_MEMORY;
}
- /* load ranges */
- range = lp_parm_const_string(-1, config_option, "range", NULL);
- if (range && range[0]) {
- if ((sscanf(range, "%u - %u", &ctx->filter_low_id, &ctx->filter_high_id) != 2) ||
- (ctx->filter_low_id > ctx->filter_high_id)) {
- DEBUG(1, ("ERROR: invalid filter range [%s]", range));
- ctx->filter_low_id = 0;
- ctx->filter_high_id = 0;
- }
- }
-
/* default map type */
ctx->ad_map_type = WB_POSIX_MAP_RFC2307;