The diagram above shows the wiring necessary. The colors are correct for the plugs used.
NOTE: The two outer (parallel) connectors in the homemade male plug (which plugs into the wiring harness) had to be swapped for the plug to work correctly as shown. Plug Details
If I was to use a different plug - one with all the same color wires, it would not have been necessary to reverse the positions of the outer connectors on the male plug, but it would be necessary to note the position of the wiring relative to the plug as is shown above.