Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Feb 2006 15:25:43 +0100
From:      Per olof Ljungmark <peo@intersonic.se>
To:        Jon Falconer <jfalconer@puc.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: slapd and bdb-4.2.52
Message-ID:  <43F48B67.70204@intersonic.se>
In-Reply-To: <Pine.BSI.4.05L.10602151610450.17810-100000@ecf.puc.edu>
References:  <Pine.BSI.4.05L.10602151610450.17810-100000@ecf.puc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Jon Falconer wrote:
--snip
> 
> Feb 15 15:24:38 ecf3 slapd[23761]: @(#) $OpenLDAP: slapd 2.2.30 (Feb  2  2006 17:42:01) $
> sysadmin@ecf3.puc.edu:/usr/ports/net/openldap22-sasl-server/work/openldap-2.2.30/servers/slapd
> Feb 15 15:24:38 ecf3 slapd[23761]: bdb_db_init: Initializing BDB database
> Feb 15 15:24:38 ecf3 slapd[23762]: slapd starting
> Feb 15 15:25:06 ecf3 slapd[23762]: conn=0 fd=10 ACCEPT from IP=127.0.0.1:55323 (IP=0.0.0.0:389)
> Feb 15 15:25:06 ecf3 slapd[23762]: conn=0 op=0 BIND dn="cn=admin,dc=ds,dc=puc,dc=edu" method=128
> Feb 15 15:25:06 ecf3 slapd[23762]: conn=0 op=0 BIND dn="cn=admin,dc=ds,dc=puc,dc=edu" mech=SIMPLE ssf=0
> Feb 15 15:25:06 ecf3 slapd[23762]: conn=0 op=0 RESULT tag=97 err=0 text=
> Feb 15 15:25:06 ecf3 slapd[23762]: conn=0 op=1 SRCH base="dc=ds,dc=puc,dc=edu" scope=2 deref=0 filter="(objectClass=*)"
> Feb 15 15:25:06 ecf3 slapd[23762]: bdb(dc=ds,dc=puc,dc=edu): illegal flag specified to txn_begin
> Feb 15 15:25:06 ecf3 slapd[23762]: bdb_txn_get: BerkeleyDB 4.2.52 library needs TXN patch!
> Feb 15 15:25:06 ecf3 slapd[23762]: conn=0 op=1 SEARCH RESULT tag=101 err=0 nentries=7 text=
> Feb 15 15:25:06 ecf3 slapd[23762]: conn=0 op=2 UNBIND
> Feb 15 15:25:06 ecf3 slapd[23762]: conn=0 fd=10 closed
> 
> Note the complaint about needing a TXN patch. I looked at the four
> available patched for db-4.2.52 on sleepycat.com and none seemed related
> to TXN. Can this error be ignored? does anyone know how to fix it?
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"

AFAIK you can run without the patch but one of the db's will grow 
forever. I have patched all our slapd's as follows:

/usr/local/etc/rc.d/slapd.sh stop
cd /usr/ports/databases/db42
make clean
make patch
cd work/db-4.2.52/
--- fetch the BerkeleyDB42.patch
patch -p0 < BerkeleyDB42.patch
cd ../../
make deinstall
make reinstall
/usr/local/etc/rc.d/slapd.sh start

http://www.google.se/search?num=100&hl=en&q=BerkeleyDB42.patch+site%3Aopenldap.org&btnG=Search



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43F48B67.70204>