LDAP: detect non-binary attributes properly