Openfire active directory and local user database dual authentication

I would like to configure openfire for dual authentication that means one active directory and localuser for openfire server. let me know how to do