Compounds of the formula (I) wherein n is 0, 1 or 2, R1 is aryl, heteroaryl or heterocyclyl, and R2 and R3 are hydrogen or a substituent as described in the specification, are useful for the prevention and treatment of bacterial infections, in particular of urinary infections caused by E. coli.