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

Re: Empty suffix doesn't work with bdb? (noted by Ben Lentz <BLentz@channing-bete.com>) (ITS#2970)



> Full_Name: Pierangelo Masarati
> Version: Unknown (any?)
> OS: Unknown
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (81.72.89.40)
> Submitted by: ando
>
>
> I reproduced it in HEAD code.

The problem occurs inside

bdb_csn_commit()

basically because an attempt to retrieve
"cn=ldapsync," fails;  This strange DN is
caused by calling build_new_dn() with
"cn=ldapsync" and "" as parent instead of
NULL, which is the value expected by
build_new_dn() for "" based DNs.
However, letting build_new_dn() return
"cn=ldapsync" doesn't cure the problem,
because bdb_csn_commit() also fails with
the DN (there's no crash until someone
searches the database, and even curing
this second crash in bdb_do_search()
doesn't fix the problem.  I got lost
after that because I don't know enough
about the csn stuff in back-bdb.  Hope
someone else takes over this, or we
disable empty suffix for back-bdb at the
moment.

Ando.

-- 
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it