Full_Name: Tom McCubbin Version: 2.3.27 and prior OS: solaris 10 x86 URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (204.252.104.5) 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: openldap-2.3.27/servers/slapd/config.c 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 changed/corrected. I have added a simple redef of BUFSIZ in config.c for the time being.
moved from Incoming to Software Bugs
changed notes changed state Open to Test
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) (204.252.104.5) > > >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: > >openldap-2.3.27/servers/slapd/config.c > > 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 >changed/corrected. > >I have added a simple redef of BUFSIZ in config.c for the time being.
changed notes changed state Test to Release
changed state Release to Closed
moved from Software Bugs to Archive.Software Bugs
Fix in HEAD/re23/re24 (use LINE_MAX instead).