Cut the ham into strips. Heat oil and fry ham in it. Remove and keep warm. Peel and chop the onions and fry them in the frying fat until transparent. Add sauerkraut. Add stock, bay leaf and juniper berries and steam for about 30 minutes.
Peel the potatoes and cook in boiling salted water for about 20 minutes. Add ham strips to the sauerkraut and heat briefly. Season to taste with salt and pepper. Drain the potatoes. Chop parsley and sprinkle on top.