From b0b0b625b588057c8c97371934bf21eb1fd985d8 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 7 Jun 2011 13:02:04 +0200 Subject: s3:idmap_autorid: use "idmap config : rangesize" instead of "autorid:rangesize" --- source3/winbindd/idmap_autorid.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c index 92cc9bcb00..6252c5d946 100644 --- a/source3/winbindd/idmap_autorid.c +++ b/source3/winbindd/idmap_autorid.c @@ -436,6 +436,7 @@ static NTSTATUS idmap_autorid_initialize(struct idmap_domain *dom) NTSTATUS status; uint32_t hwm; TALLOC_CTX *frame = talloc_stackframe(); + char *config_option = NULL; config = TALLOC_ZERO_P(frame, struct autorid_global_config); if (!config) { @@ -449,8 +450,15 @@ static NTSTATUS idmap_autorid_initialize(struct idmap_domain *dom) goto error; } + config_option = talloc_asprintf(frame, "idmap config %s", dom->name); + if (config_option == NULL) { + DEBUG(0, ("Out of memory!\n")); + status = NT_STATUS_NO_MEMORY; + goto error; + } + config->minvalue = dom->low_id; - config->rangesize = lp_parm_int(-1, "autorid", "rangesize", 100000); + config->rangesize = lp_parm_int(-1, config_option, "rangesize", 100000); if (config->rangesize < 2000) { DEBUG(1, ("autorid rangesize must be at least 2000\n")); -- cgit