Login Interceptor


I am new to openfire. I want to build my own client with openfire server. I want to build my own login interceptor, as I want to authenticate my user from some other database. If user will get authenicated from my other databased then I will insert that user in openfire fire database. Please guide me to intercept login call.

Thank you very much…