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

oc_schema_check (ITS#204)



Full_Name: Wesley Craig
Version: 1.2.3
OS: Solaris 2.6
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (141.211.164.29)


I've run into what I think is a bug recently.  One of my testers was
adding data to my directory without an objectclass.  Since I had
schemacheck on, I was surprised that slapd permitted this.  So, my
first "bug" is that oc_schema_check (servers/slapd/schema.c) seems
broken.  This line:

    if ( (aoc = attr_find( e->e_attrs, "objectclass" )) == NULL ) {
    
should cause return( 1 ), while it currently returns 0.

In any case, the reason I encountered the problem is that upon attempting
to delete the offending entries, I got the "ldbm_back_delete: non leaf"
error for *some* entries.  This was unexpected since the entries were in
fact leaves.  I'm still try to track this issue down.