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

slapadd and attribute value length limit



I've seen this before, but now it's a real problem. Is there a limit to the length of an indexed attribute value?

Using RH 9, OL 2.2.5, BDB 4.2.52. I am updating my gospel example, but when I run:

# slapadd -l gospel.ldif

I get

slapadd: could not add entry dn="gospid=GVMattC14V15,ou=Gospel,ou=Expressions,o=mentata.com" (line=9405): txn_aborted! Cannot allocate memory (12)

where LDIF is:

dn: gospid=GVMattC14V15, ou=Gospel, ou=Expressions, o=mentata.com
objectclass: top
objectclass: gosp
gospid: GVMattC14V15
gospqualifier: 401415
gospowner: cn=Matthew, ou=Bible, ou=People, o=mentata.com
gospname: Matthew 14:15
gosptype: verse
gospdescription: And when it was evening, his disciples came to him, saying, This is a desert place, and the time is now past; send the multitude away, that they may go into the villages, and buy themselves victuals.
gospdescription;lang-en: When it was evening, the disciples came to him and said, "This is a deserted place, and the hour is now late; send the crowds away so that they may go into the villages and buy food for themselves."
gospdescription;lang-la: vespere autem facto accesserunt ad eum discipuli eius dicentes desertus est locus et hora iam praeteriit dimitte turbas ut euntes in castella emant sibi escas
gospdescription;lang-af: En toe dit aand geword het, kom sy dissipels na Hom en sê: Die plek is verlate, en dit is al oor die tyd; stuur die skare weg, sodat hulle na die dorpe kan gaan en vir hulle voedsel koop.
gospdescription;lang-de: Am Abend aber traten seine Jünger zu ihm und sprachen: Dies ist eine Wüste, und die Nacht fällt herein; Laß das Volk von dir, daß sie hin in die Märkte gehen und sich Speise kaufen.
gospdescription;lang-el: οψιας δε γενομενης προσηλθον αυτω οι μαθηται λεγοντες ερημος εστιν ο τοπος και η ωρα ηδη παρηλθεν απολυσον τους οχλους ινα απελθοντες εις τας κωμας αγορασωσιν εαυτοις βρωματα
gospdescription;lang-es: Y cuando fué la tarde del día, se llegaron á él sus discípulos, diciendo: El lugar es desierto, y el tiempo es ya pasado: despide las gentes, para que se vayan por las aldeas, y compren para sí de comer.
gospdescription;lang-sq: Pastaj në mbrëmje dishepujt e tij iu afruan dhe i thanë: ''Ky vend është i shkretë dhe u bë vonë; lejo turmat të shkojnë nëpër fshatra për të blerë ushqime''.
gospdescription;lang-sv: Men när det led mot aftonen, trädde hans lärjungar fram till
gospdescription;lang-sw: Kulipokuwa jioni, wanafunzi wake walimwendea wakamwambia, "Mahali hapa ni nyikani, na saa zimepita. Basi, uwaage watu ili waende vijijini wakajinunulie chakula."
gospdescription;lang-zh: 天 將 晚 的 時 候 、 門 徒 進 前 來 說 、 這 是 野 地 、 時 候 已 經 過
了 . 請 叫 眾 人 散 開 、 他 們 好 往 村 子 裡 去 、 自 己 買 喫 的 。


---

the schema includes

attributetype ( 1.3.6.1.4.1.15121.2.5.5 NAME 'gospdescription'
    EQUALITY caseIgnoreMatch
    SUBSTR caseIgnoreSubstringsMatch
    SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )

---

slapd.conf has

index	gospid,gospname,gospqualifier,gospdescription   eq,pres,sub

---

and DB_CONFIG is

set_lg_dir      /var/log/openldap
set_lg_max      104857600
set_lg_bsize    26214400
set_cachesize 0 10485760 1

As you can see, it loads a number of verses fine. It seems to get stuck on the longer ones. What do I need to change (besides OS and OL version :) ) to get this data loaded and indexed?

Jon Roberts
www.mentata.com