[Date Prev][Date Next] [Chronological] [Thread] [Top]

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/    __(_)/_(_)________/    \_______(_) /_(_)__