This PR aims at improving the custom queries for Bloodhound.
To do so, I refactored many queries to:
standardize a bit more the formatting while reducing the queries length
improve the performance of queries by adding more criteria to reduce the set of nodes Neo4j must take into account when computing the results, the flag enabled is a typical example
remove useless subqueries
improve the regexp for the queries checking for plaintext password
fix a bogus request
one query was not doing what the comment said it would
add more indexes
add one nice query I wrote: Administrators and Domain/Entreprise Admins with sessions not on domain controllers
This PR aims at improving the custom queries for Bloodhound.
To do so, I refactored many queries to:
enabled
is a typical example