here is what i have setup for do solo.
bitcoin.conf
server=1
rpcuser=USRNAME
rpcpassword=RANDOMPASSWORD
rpcallowip=127.0.0.1
rpcport=8332
Then for bfgminer i have my bitcoind address (localhost in this example) with the username and password in the bitcoin.conf. seems to work...