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