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

Re: Lockup when moding one particular entry

--On Tuesday, October 11, 2005 8:08 AM -0700 David Engeset <davidke@whidbey.net> wrote:

    I am running OpenLDAP 2.2.26.  I have recently run into a problem:
when I try to add a new member attribute to an entry that has top and
groupOfNames as its only objectClasses, slapd will hang when trying to
run ldap_mod_add.  The ldap log file shows the line stating that it is
performing a mod:

slapd[19807]: conn=78 op=1 MOD attr=member
but it will not finish and write the next line that shows it completed.
Slapd will then hang indefinitely.  If I kill and restart slapd, it no
longer runs properly and I must run db_recover to repair the database.
If I try and run slapcat on this corrupted database without recovering
it first, slapcat hangs and the ldif file it writes contains only
entries up to several entries before the group entry that is causing the
The strange part about this problem is that once I have killed slapd and
recovered the database (using db_recover) I can do the exact same
operation (i.e., ldap_mod_add) and it works fine.  But the next morning
if I try again it will hang on the same operation.
I can do other ldap_mod_adds on other entries of different objectClasses
and they do not hang and then do the group mod and it hangs.  Running
slapcat or ldapsearch on the entry in question from a non-corrupted
database shows no difference between this entry and any other
non-problematic entry with the same two object classes and similar
member attributes.

I even retyped the offending group entry and used ldapdelete to remove it
and added it back in using ldapadd and the problem still persists.

Any ideas about what is happening and/or causing this condition would be
greatly appreciated.

Are you using back-bdb, back-hdb? What version of the BDB software are you running? I will also note that 2.2.26 is fairly old at this point. Do you have a DB_CONFIG file? How many members does the group you are modding have?


Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin