Added missing ldapentry_to_dict function.