Subject: Trouble logging in with agsXMPP
I am trying to connect to an openfire server using the following code, however I am unable to authenticate. I am a newbie at this, so if anyone could provide some assistance (code revisions even), that would be greatly appreciated. I simply need to create a basic IM application that performs a send-only notification to users set up on the openfire server.
When I run the application, I receive the following to my console screen:
Cipher: Rc4 strength 128
Hash: Md5 strength 128
Key exchange: RsaSign strength 1024
Protocol: Tls
Is authenticated: True as server? False
IsSigned: True
Is Encrypted: True
Certificate revocation list checked: True
Remote cert was issued to CN=openfireserver and is valid from 8/28/2007 2:53:13 PM until
8/1/2012 2:53:13 PM.
Can read: True, write True
Can timeout: True
0605a1fc7053bf3930b1355c5ab33aeb
Thanks in advance!
XmppClientConnection xmpp = new XmppClientConnection();
xmpp.Server = "openfireserver";
xmpp.Username = "myuserid@openfireserver";
xmpp.Password = "mypassword";
xmpp.Open();
agsXMPP.Jid JID = new Jid("sendtouser@openfireserver");
agsXMPP.protocol.client.Message msg = new agsXMPP.protocol.client.Message();
msg.Type = agsXMPP.protocol.client.MessageType.chat;
msg.To = JID;
msg.Body = "This is a test " + DateTime.Now.ToString();
xmpp.OnLogin += delegate(object o) { xmpp.Send(msg); };
Console.ReadKey();
xmpp.Server = "openfireserver";
xmpp.Username = "myuserid@openfireserver";
xmpp.Password = "mypassword";
xmpp.Open();
agsXMPP.Jid JID = new Jid("sendtouser@openfireserver");
agsXMPP.protocol.client.Message msg = new agsXMPP.protocol.client.Message();
msg.Type = agsXMPP.protocol.client.MessageType.chat;
msg.To = JID;
msg.Body = "This is a test " + DateTime.Now.ToString();
xmpp.OnLogin += delegate(object o) { xmpp.Send(msg); };
Console.ReadKey();
When I run the application, I receive the following to my console screen:
Cipher: Rc4 strength 128
Hash: Md5 strength 128
Key exchange: RsaSign strength 1024
Protocol: Tls
Is authenticated: True as server? False
IsSigned: True
Is Encrypted: True
Certificate revocation list checked: True
Remote cert was issued to CN=openfireserver and is valid from 8/28/2007 2:53:13 PM until
8/1/2012 2:53:13 PM.
Can read: True, write True
Can timeout: True
0605a1fc7053bf3930b1355c5ab33aeb
Thanks in advance!