There are two ways to go about it. Do you still have the pins that fell out? Was it the entire pin assembly meaning all eight of them? I have just pushed them back into controller ports before just using a little bit of super glue around the sides to make sure it doesn't come apart again.
If that isn't an option then the easiest thing would be to get a junk controller and steal the cable from it. It's kind of a pain in the ass to solder a new din 8 jack onto the end of the cable. I am pretty handy with a soldering iron and I don't like soldering new ends on.