I believe the best (only?) way to accomplish this will be through Markov Chain Monte Carlo sampling:

http://en.wikipedia.org/wiki/Markov_chain_Monte_Carlo

This will allow you to sample from the unknown posterior without knowing it's functional form.