Compounds of the formula (I) wherein n is 0, 1 or 2, R is aryl, heteroaryl or heterocyclyl, and R and R 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 .