https://fedorahosted.org/389/ticket/47763
https://fedorahosted.org/389/attachment/ticket/47763/0001-Ticket-47763-wi...
Thanks to Carsten Grzemba for the patch. Made minimum changes such as
replacing the direct access to the bv_len in Slapi_Value with
slapi_value_get_length.