adamwill / 389-ds-base

Forked from 389-ds-base 4 years ago
Clone

766e747 Ticket 47591 - entries with empty objectclass attribute value can be hidden

Authored and Committed by lkrispen 10 years ago
    Ticket 47591 - entries with empty objectclass attribute value can be hidden
    
    Bug Description:   The problem is that for the empty value
    
    	objectClass;vdcsn-5283b8e0000000c80000;deleted
    
    	it is compared to "ldapsubentry" and "nstombstone"
    
    	'if (PL_strncasecmp(type.bv_val,"tombstone",0)'
    
    	and with length 0, this is always true.
    
    Fix Description:   add a check bv_len >= strlen(valuetocompare)
    			or	bv_len == strlen(valuetocompare)
    			define constants for lengths
    
    https://fedorahosted.org/389/ticket/47591
    
    Reviewed by: richm, thanks
    
        
file modified
+8 -7