B+ can go to the + on the battery, or on the other end, at the starter (big red wire).
Ground the alt housing to ground on the engine (medium brown wire).
D+ is the rectangular plug (small blue wire).
Brown is usually ground, unless somebody added a wire.