Solved several bugs with LDAP filter and attribute mappings