[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) (131.130.2.235)


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
something
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
the
libc translating ERANGE into some text, for openbsd, the text is the same, for
linux
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):
SLAP_SB_MAX_INCOMING_DEFAULT (1<<18 - 1) 
(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 5.2.1.11 to the admin guide:

5.2.1.11 sockbuf_max_incoming (integer)

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

Default:

  sockbuf_max_incoming 131072

Anyway, thank you for this fine product!

Regards,

  Alexander