How do you wire up a bottle dynamo? - Bike Tinker
With the exception of modern bottle dynamos, older ones have a single outlet and are grounded to the frame.
LED lights use a double cable and have a separate cable/connector coming from the light itself for the rear light.