slapd and bdb-4.2.52

Per olof Ljungmark peo at intersonic.se
Thu Feb 16 06:25:50 PST 2006


Jon Falconer wrote:
--snip
> 
> Feb 15 15:24:38 ecf3 slapd[23761]: @(#) $OpenLDAP: slapd 2.2.30 (Feb  2  2006 17:42:01) $
> sysadmin at 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 at 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


More information about the freebsd-questions mailing list