[Samba] Advices for Samba and OpenLDAP

Michael Gasch gasch at eva.mpg.de
Fri Oct 21 10:45:54 GMT 2005


hi list,

we have some trouble with openldap (back-bdb) and samba. i think it's 
more a problem with openldap and bdb 
(http://www.openldap.org/lists/openldap-bugs/200510/msg00185.html) but i 
want to know something about your experiences with openldap in large 
enterprises.

what are your settings for slapd and bdb?
or is there a better backend for slapd than bdb?
which software versions are you using?
did you make changes to DB_CONFIG?

we tortured slapd with a perl script (50 instances of it parallel) which 
reads ~1000 user passwords from slapd1 and writes it to another slapd 
(different host) with $ldap->modify. we can reproducable crash our ldap 
server or its backend with this script. but that should not happen - 
it's just a simple perl script :-/

this happens when it crashes:
Oct 21 10:39:06 ldapmaster2 slapd[17172]: bdb_modify: retrying...
Oct 21 10:39:06 ldapmaster2 slapd[17172]: bdb(dc=eva,dc=mpg,dc=de):
DB_TXN->abort: Log undo failed for LSN: 3 2173192: DB_NOTFOUND: No
matching key/data pai
r found
Oct 21 10:39:06 ldapmaster2 slapd[17172]: bdb(dc=eva,dc=mpg,dc=de):
PANIC: DB_NOTFOUND: No matching key/data pair found
Oct 21 10:39:06 ldapmaster2 slapd[17172]: send_ldap_result: conn=16
op=10 p=3
Oct 21 10:39:06 ldapmaster2 slapd[17172]: send_ldap_response: msgid=13
tag=103 err=80
Oct 21 10:39:06 ldapmaster2 slapd[17172]: bdb(dc=eva,dc=mpg,dc=de):
PANIC: fatal region error detected; run recovery
Oct 21 10:39:06 ldapmaster2 slapd[17172]: bdb_cache_entry_db_relock:
entry 552, rw 1, rc -30978
Oct 21 10:39:06 ldapmaster2 slapd[17172]: bdb(dc=eva,dc=mpg,dc=de):
PANIC: fatal region error detected; run recovery
Oct 21 10:39:06 ldapmaster2 slapd[17172]: bdb_modify: txn_commit failed:
DB_RUNRECOVERY: Fatal error, run database recovery (-30978)
Oct 21 10:39:06 ldapmaster2 slapd[17172]: send_ldap_result: conn=17
op=11 p=3
Oct 21 10:39:06 ldapmaster2 slapd[17172]: send_ldap_response: msgid=14
tag=103 err=80

after that we have to run db_recover to make it running again :(

thx for your help in advance!
i appreciate it!

-- 
Michael Gasch
Max Planck Institute for Evolutionary Anthropology
Department of Human Evolution (IT)
Deutscher Platz 6
D-04103 Leipzig
Germany

Phone: 49 (0)341 - 3550 137


More information about the samba mailing list