[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: Too many tokens?
Good day,
Thanks for your reply,
It would make a lot more sense to have the parser have no maximum. I know a
static array is quick and dirty (I know I have cut corners more than once on
little projects =) ) but for a project like OpenLDAP it should be done
right.
Anyway, in the meantime I will try out your suggestion.
Thanks again,
============================
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-----Original Message-----
From: John Morrissey [mailto:jwm@horde.net]
Sent: Friday, March 15, 2002 4:36 PM
To: openldap-software@OpenLDAP.org
Subject: Re: Too many tokens?
On Fri, Mar 15, 2002 at 02:21:14PM -0700, Darren Gamble wrote:
% OpenLDAP itself is working fine, but it chokes when we try to load the
% schema file. The following error is logged:
%
% Too many tokens (max 500)
%
% .. and then the server exits.
You're analysis is right on; the parser uses the compiled-in value of
MAXARGS in servers/slapd/config.c for the size of the token array. This
limit is per-config file. As a short-term fix, you can either:
* bump MAXARGS up and recompile.
-or-
* break your objectclass definitions into separate files that are under the
500-token limit. It doesn't sound like this is much of an option for you.
Someone else (read: someone with commit access :-) will have to comment on
making it changeable at runtime; it would probably have to be a command-line
argument since you've got a bit of a catch-22 if you make it a directive in
slapd.conf.
john
--
John Morrissey _o /\ ---- __o
jwm@horde.net _-< \_ / \ ---- < \,
www.horde.net/ __(_)/_(_)________/ \_______(_) /_(_)__