Please help to Integrate with VBulletin

Hi everyone. I’m trying to connect my database with vbulletin so that user who register in my website are automatically registered for the forum. Then he/she can login from the website and will logged in also in the forum. Anyone has the experience in doing this ? Where I should put the forum folder in my yii application and what to put in my authenticate() method ? Thanks