Openfire integration with Custom Mysql database - users cannot login

I am using the openfire 3.7.1.I have set property as define in this link “http://community.igniterealtime.org/thread/45325”.I have problem in setting this 2 property

provider.auth.className = org.jivesoftware.openfire.auth.JDBCAuthProvider

provider.user.className = org.jivesoftware.openfire.user.JDBCUserProvider.

If i set above property then i can’t login from admin and or any user.But if i set the property like

provider.auth.className = org.jivesoftware.openfire.auth.DefaultAuthProvider

provider.user.className = org.jivesoftware.openfire.user.DefaultUserProvider. then i can login but the user entry is not in my custome database.So can anybody know why i can not set this two propery?This is my first post in this forum.