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

Re: (ITS#4651) slapd fails parsing valid slapd.conf

I have made a few commits to HEAD to address this issue.
The slapd.conf(5) physical line length is now determined by
LINE_MAX, which by POSIX, should be at least 2048 characters.
I've also updated the slapd.conf(5) manual page to note
that no physical line should be longer than 2000 characters.
slapd.conf(5) containing long physical lines (BUFSIZ before,
2000 now) are not considered valid.

I recommend continuation lines be used well before
approach the (past or current) physical line limit.

-- Kurt

At 10:15 AM 8/25/2006, tmccubbin@crtllc.com wrote:
>Full_Name: Tom McCubbin
>Version: 2.3.27 and prior
>OS: solaris 10 x86
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (
>On solaris (& likely BSD) slapd can't handle slapd.conf lines which are greater
>than 1024 chars in width.  This stems from the issue that unlike in the gnu libc
>stdio which defines BUFSIZ as 8k, sun and bsd uses a BUFSIZ of 1k.
>this is causing Hula (http://www.hula-project.org) to fail on solaris beacuse
>the schema used has a MAY (...) clause which exceeds the 1024 bufsize.
>I have tracked the problem to the following location:
>    a static char buffer w/ size BUFSIZ is allocated (buf[BUFSIZ]) and used when
>reading lines from the slapd.conf config file.  This should be
>I have added a simple redef of BUFSIZ in config.c for the time being.