Bayern got a deserved second when Ribery converted a penalty for handball with 16 minutes to go.