LDAP and External database authentification

I have users on a Mysql DB and LDAP (Directory server), is it possible to connect users using both methods on Openfire server? When I tried to connect to an external database on the profile settings, openfire gives me a choice between default or LDAP, so I chose the default and I’ve edited the openfire.xml and I’ve added properties to the ofproperty table in the database.