Preheat oven to 200C/Gas 6.
1) Lay bread on a baking tray. Rub each slice with a clove of garlic and sprinkle with a pinch of salt; reserve garlic clove. Toast in oven until golden, about 8 minutes.
2) Chop all garlic cloves. Cook garlic in the olive oil in a small skillet over medium-high heat, stirring, until it is golden, about 3 minutes. Pull skillet from heat; stir in rosemary and red pepper and cool slightly.
3) Put beans, the 1 1/2 teaspoons salt, and all but 1 teaspoon of the rosemary oil in a food processor and process until smooth. Scrape puree into a serving bowl and drizzle with reserved rosemary oil. Serve with toasted baguette and, if desired, raw vegetables.