Subject: Can't authenticate to openfire server
Hi,
Ive been trying to connect to an openfire server but it always says “Invalid username/password.
I have tried the same username and password on spark and pandion and they both work.
Here’s the connection properties i set in my app
_con.Server = "xmpp.openfire-server.com";
_con.Resource = “My App”;
_con.Port = 5222;
_con.Priority = 10;
_con.UseSSL = false;
_con.UseStartTLS = true;
_con.Username = “chris”;
_con.Password = “password”;
_con.open;
Connecting using Pandion
Address: chris@openfire-server.com
Password: “password”
-Server Connection settings-
Address: xmpp.openfire-server.com
Port: Automatic
Login is successful
Connecting using Spark
Username: chris
Password: “password”
Server: xmpp.openfire-server.com
Login is successful
I tried using MiniClient with the following connection properties
Username: chris@openfire-server.com
Password: “password”
Port = 5222
Priority = 10
When i try to login, a messagebox shows “Socket Error No connection could be made because the target machine actively refused it 111.111.111.111:5222”.
And there are no debug data.
I tried Miniclient again with a different username
Username: chris@xmpp.openfire-server.com
Password: “password”
Port=5222
Priority =10
When i try to login, a messsagebox shows “Authentication Error! Wrong password or username:
Debug data:
SEND: <stream:stream to='xmpp.openfire-server.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" from="openfire-server.com" version="1.0" xml:lang="en" id="a3f988a6" >
RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" /><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism><mechanism>CRAM-MD5</mechanism></mechanisms><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><auth xmlns="http://jabber.org/features/iq-auth" /></stream:features>
SEND: <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
RECV: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
SEND: <stream:stream to='xmpp.openfire-server.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" from="openfire-server.com" version="1.0" xml:lang="en" id="a3f988a6" >
RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism><mechanism>CRAM-MD5</mechanism></mechanisms><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><auth xmlns="http://jabber.org/features/iq-auth" /></stream:features>
SEND: <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="DIGEST-MD5" />
RECV: <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09ImNvbW11bmktc2FmZS5jb20iLG5vbmNlPSI2UXF1eVd0eThXSzd5aDZiSHBBU3dzSjJ0MEplWmx1aW04YzB4M21TIixxb3A9ImF1dGgiLGNoYXJzZXQ9dXRmLTgsYWxnb3JpdGhtPW1kNS1zZXNz</challenge>
SEND: <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dXNlcm5hbWU9ImNocmlzIixyZWFsbT0iY29tbXVuaS1zYWZlLmNvbSIsbm9uY2U9IjZRcXV5V3R5OFdLN3loNmJIcEFTd3NKMnQwSmVabHVpbThjMHgzbVMiLGNub25jZT0iZGNkNjRjMjg2ODllOWYxMDE1NTcwNjU1Y2ExNWVkODdlNzQxMDEyNmRiMjk3YzA1MjQ3MDliN2MyZTIwM2NhNCIsbmM9MDAwMDAwMDEscW9wPWF1dGgsZGlnZXN0LXVyaT0ieG1wcC94bXBwLmNvbW11bmktc2FmZS5jb20iLGNoYXJzZXQ9dXRmLTgscmVzcG9uc2U9NzQ1MDFkMzJhY2U0YmFhZGM4OGUwM2RiMWYxZWIyZGM=</response>
RECV: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized /></failure>
SEND: </stream:stream>
RECV: </stream:stream>
Cant figure it if there is something wrong with the code or there’s something wrong with the openfire server. Point me to the right direction.
Thanks,
Chris
Ive been trying to connect to an openfire server but it always says “Invalid username/password.
I have tried the same username and password on spark and pandion and they both work.
Here’s the connection properties i set in my app
_con.Server = "xmpp.openfire-server.com";
_con.Resource = “My App”;
_con.Port = 5222;
_con.Priority = 10;
_con.UseSSL = false;
_con.UseStartTLS = true;
_con.Username = “chris”;
_con.Password = “password”;
_con.open;
Connecting using Pandion
Address: chris@openfire-server.com
Password: “password”
-Server Connection settings-
Address: xmpp.openfire-server.com
Port: Automatic
Login is successful
Connecting using Spark
Username: chris
Password: “password”
Server: xmpp.openfire-server.com
Login is successful
I tried using MiniClient with the following connection properties
Username: chris@openfire-server.com
Password: “password”
Port = 5222
Priority = 10
When i try to login, a messagebox shows “Socket Error No connection could be made because the target machine actively refused it 111.111.111.111:5222”.
And there are no debug data.
I tried Miniclient again with a different username
Username: chris@xmpp.openfire-server.com
Password: “password”
Port=5222
Priority =10
When i try to login, a messsagebox shows “Authentication Error! Wrong password or username:
Debug data:
SEND: <stream:stream to='xmpp.openfire-server.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" from="openfire-server.com" version="1.0" xml:lang="en" id="a3f988a6" >
RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" /><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism><mechanism>CRAM-MD5</mechanism></mechanisms><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><auth xmlns="http://jabber.org/features/iq-auth" /></stream:features>
SEND: <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
RECV: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
SEND: <stream:stream to='xmpp.openfire-server.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" from="openfire-server.com" version="1.0" xml:lang="en" id="a3f988a6" >
RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism><mechanism>CRAM-MD5</mechanism></mechanisms><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><auth xmlns="http://jabber.org/features/iq-auth" /></stream:features>
SEND: <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="DIGEST-MD5" />
RECV: <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09ImNvbW11bmktc2FmZS5jb20iLG5vbmNlPSI2UXF1eVd0eThXSzd5aDZiSHBBU3dzSjJ0MEplWmx1aW04YzB4M21TIixxb3A9ImF1dGgiLGNoYXJzZXQ9dXRmLTgsYWxnb3JpdGhtPW1kNS1zZXNz</challenge>
SEND: <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dXNlcm5hbWU9ImNocmlzIixyZWFsbT0iY29tbXVuaS1zYWZlLmNvbSIsbm9uY2U9IjZRcXV5V3R5OFdLN3loNmJIcEFTd3NKMnQwSmVabHVpbThjMHgzbVMiLGNub25jZT0iZGNkNjRjMjg2ODllOWYxMDE1NTcwNjU1Y2ExNWVkODdlNzQxMDEyNmRiMjk3YzA1MjQ3MDliN2MyZTIwM2NhNCIsbmM9MDAwMDAwMDEscW9wPWF1dGgsZGlnZXN0LXVyaT0ieG1wcC94bXBwLmNvbW11bmktc2FmZS5jb20iLGNoYXJzZXQ9dXRmLTgscmVzcG9uc2U9NzQ1MDFkMzJhY2U0YmFhZGM4OGUwM2RiMWYxZWIyZGM=</response>
RECV: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized /></failure>
SEND: </stream:stream>
RECV: </stream:stream>
Cant figure it if there is something wrong with the code or there’s something wrong with the openfire server. Point me to the right direction.
Thanks,
Chris