Can not login after changing the property

I want to configure custome database with openfire.I have follow the changes as defined here http://community.igniterealtime.org/thread/45325.

The problem is that if i set below two property from default to JDBC then restart the openfire and tried to login with admin then i can not login.It gives me error like username and password wrong or authentication failed.When i check in ofUser then admin username and password is there.So what could i do for solve this error.I have tried with version 3.7 and 3.8.1 version in both same issue there.

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

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