Fixed and enhanced ldapGetAttributeValueFromLdif()

Fixed the LDIF parser algorithm of the ldapGetAttributeValueFromLdif
function and added the possibility to disable multi-valued attribute
lookups. This gives the caller the option to eliminate unnecessary
iterations if the attribute is known to be single-valued and not on
the last LDIF line.