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

slapd: undocumented sockbuf_max_incoming <integer> (ITS#1242)

Full_Name: Alexander Talos
Version: 2.0.11
OS: aix
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

I'm new to openldap and experimenting with netcape's roaming user feature. I had

problems storing my bookmark file (netscape doesn't alert the user when
goes wrong uploading it). The slapd-log (level 1) shows:

Jul 18 15:37:46 mx1 slapd[317314]: ber_get_next on fd 7 failed errno=34 
(Result too large)

(Note that the text "Result too large" does not come from openldap, but from
libc translating ERANGE into some text, for openbsd, the text is the same, for
I believe it's Numerical result out of range).

Following the source (I wasn't able to find anything in the docs or the search 
engines - sorry if I didn't try hard enough), I found that there is a variable 
defaulting to (proto-slap.h):
(ie. 131072, too short for my bookmarks) that can be reset in the slapd.conf:

sockbuf_max_incoming 1234567

did the trick for me.

I'd suggest to add a section to the admin guide: sockbuf_max_incoming (integer)

This directive specifies the maximum size in bytes an attribute can have.


  sockbuf_max_incoming 131072

Anyway, thank you for this fine product!