public static bool Authenticate(this IDatabase database, string username, string password)
{
// Create a temporary connection for authentication only...
using (var session = database.CreateSystemSession()) {
session.CurrentSchema(SystemSchema.Name);
return session.Access().Authenticate(username, password);
}
}