Awhile back I discovered some ham flavored bouillon cubes (Knorr brand if I remember correctly), and recently found jars of "Ham Base" at Cash and Carry.

I've tried both and they help considerably to boost the flavor of bean soup.