I am working on a Wordpress based portal which integrates with a custom-made e-commerce. The e-commerce serves also as a \'control panel\': all the roles are set up there.
Might be an idea or code to borrow and implement: WordPress › External DB authentication « WordPress Plugins