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

openldap 2.2.19 + BDB 4.3.21 rpms


I see lot of posts about openldap 2.2.19 and BDB 4.3.21. For those of you interested in rpm distribution, I've built relocatable rpms which includes their own embeded liblber, libldap , libslapd_db-4.3 libraries (so that it doesn't break rpm dependancies/conflict ...) for fedora core2 distribution. Binaries are available at
and source rpms (srpms) in the parent directory.
2.2.19-1 packages use a builtin BDB 4.2.52 and 2.2.19-2 packages use a builtin BDB 4.3.21
however it doesn't include quanah's pach: <http://www.stanford.edu/services/directory/openldap/configuration/patches/openldap/bdb4-3.diff>
because it is not clear for me what is its purpose ? quanah ?
If you use these pakages, DO read http://www.int-evry.fr/s2ia/user/procacci/SRPMS/README-jehan.txt which explains everything on how to rebuild it (if necessary) and how to use it !.

For information ...
I've tested it and had no problem to create a 2800 entries (posixAccount users mainly) database .
[root@calaz /usr/local/openldap-2.2.19-2/var/lib/ldap/int]
$ time /usr/local/openldap-2.2.19-2/sbin/slapadd -f /usr/local/openldap-2.2.19-2/etc/openldap/slapd.conf -l /tmp/dump.ldif

real    0m30.722s
user    0m18.626s
sys     0m1.206s

[root@calaz /usr/local/openldap-2.2.19-2/var/lib/ldap/int]
#set the logfile size to 100MB.
#set_lg_max 104857600
set_lg_max 10485760
#set the in-memory log buffer size
set_lg_bsize 204800
#temporary while we're slapadding the database
set_flags DB_TXN_NOSYNC #commented after slapdadd !
#set the (per db?) cachesize to 0GB + X bytes, split into N pieces of memory
set_cachesize 0 8192000 1

I did not use DB_LOG_INMEMORY -> maybe that's why I had no problems ?

$ /usr/local/openldap-2.2.19-2/sbin/slapd_db_checkpoint -1 -v
db_checkpoint: checkpoint begin: Fri Dec  3 14:44:57 2004

db_checkpoint: checkpoint complete: Fri Dec  3 14:44:57 2004
$ /usr/local/openldap-2.2.19-2/sbin/slapd_db_archive -l

[root@calaz /usr/local/openldap-2.2.19-2/var/lib/ldap/int]
$ ldd /usr/local/openldap-2.2.19-2/sbin/slapd
libslapd_db-4.3.so => /usr/local/openldap-2.2.19-2/lib/tls/libslapd_db-4.3.so (0x00827000)
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00296000)
libssl.so.4 => /lib/libssl.so.4 (0x003bd000)
libcrypto.so.4 => /lib/libcrypto.so.4 (0x0016b000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x002df000)
libresolv.so.2 => /lib/libresolv.so.2 (0x007d2000)
libdl.so.2 => /lib/libdl.so.2 (0x005cf000)
libwrap.so.0 => /usr/lib/libwrap.so.0 (0x00a96000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x006c2000)
libc.so.6 => /lib/tls/libc.so.6 (0x0048c000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x002b2000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00101000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x00da7000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00db2000)
libz.so.1 => /usr/lib/libz.so.1 (0x0069f000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00473000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00441000)