ITS#8003 fix off-by-one in LDIF length

must account for leading space when counting total number of lines
ITS#8003