Handle multiple keys in ldap correctly