Auth via multiple sources

Is this remotely possible? An example scenario is having a few websites (I know we need LDAP and we are indeed looking into it) each with own databases. We would like to allow all our users from various CMS’s to login. Can this be done in the openfire.xml file or is it not possible to auth from more than one source?