powered by Jive Software

Using Strophe + bosh always return AUTHFAIL status

I am using strophe.js and bosh to connect to my openfire server.
Here are my openfire server details:

XMPP Domain Name: subpm.localdomain
Bosh (http-bind) : http://subpm.localdomain:7070/http-bind/
ip: let say

I have used Adium and successfully connect via bosh. I have to mentioned the ip address instead of xmpp domain name. and in jid i have also used the ip address.

But using strophe i am always getting AUTHFAIL status. I am using ip address just like Adium to connect. Can anybody guide me in right direction. Thanks.