Properly converts ldap dictionary to usable form.