Not logged in. · Lost password · Register
Forum: XMPP Protocol RSS
Avatar
cml #1
Member since Oct 2005 · 15 posts
Group memberships: Members
Show profile · Link to this post
Subject: What is "XmppClientConnection.ConnectServer" mean?
hi~
Because I have tried to build a SoapBox server, and I couldn't login correctly.
I think when I connected to google talk's server,
I should set "_connection.ConnectServer = "talk.google.com"" first,
and this maybe the reason.
So I would like to know how is "XmppClientConnection.ConnectServer" mean for the client.
How should I set? Only fix "_connection.Server" seemed useless?

Thank you very much~:oops:

Here is the error message, if you need.
SEND: <stream:stream to='ngadavid.myftp.org' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
RECV: <stream:stream xmlns:stream=&quot;http://etherx.jabber.org/streams&quot; version=&quot;1.0&quot; from=&quot;ngadavid.myftp.org&quot; xml:lang=&quot;zh-TW&quot; id=&quot;a25118f4-bc99-4582-9d3a-fb8a43515753&quot; >
RECV: <stream:features xmlns:stream=&quot;http://etherx.jabber.org/streams&quot;><register xmlns=&quot;http://jabber.org/features/iq-register&quot; />
<mechanisms xmlns=&quot;urn:ietf:params:xml:ns:xmpp-sasl&quot;><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism></mechanisms>
<auth xmlns=&quot;http://jabber.org/features/iq-auth&quot; /></stream:features>
SEND: <auth xmlns=&quot;urn:ietf:params:xml:ns:xmpp-sasl&quot; mechanism=&quot;DIGEST-MD5&quot; />
RECV: <challenge xmlns=&quot;urn:ietf:params:xml:ns:xmpp-sasl&quot;>cmVhbG09Im5nYWRhdmlkLm15ZnRwLm9yZyIsbm9uY2U9IjIyMWE2ZWY4LTkzNjQtNDMxYS05YjAwLTk4NGNlY2JmNWZlOSIscW9wPSJhdXRoIixjaGFyc2V0PXV0Zi04LGFsZ29yaXRobT1tZDUtc2Vzcw==</challenge>
SEND: <response xmlns=&quot;urn:ietf:params:xml:ns:xmpp-sasl&quot;>dXNlcm5hbWU9IlNvYXBCb3hBZG1pbkBuZ2FkYXZpZC5teWZ0cC5vcmciLHJlYWxtPSJuZ2FkYXZpZC5teWZ0cC5vcmciLG5vbmNlPSIyMjFhNmVmOC05MzY0LTQzMWEtOWIwMC05ODRjZWNiZjVmZTkiLGNub25jZT0iNjQ3ZDhlNjU5MjFlYmY0NDZhNTdiOTZiOWM4NTgxMGMwNDcwYTkxNGI5NDNmYmRiZmY5MDBmZjRiNzZiOTU5ZSIsbmM9MDAwMDAwMDEscW9wPWF1dGgsZGlnZXN0LXVyaT0ieG1wcC9uZ2FkYXZpZC5teWZ0cC5vcmciLGNoYXJzZXQ9dXRmLTgscmVzcG9uc2U9ODUxZTZhMWI3Y2UzYjZiNmY2YzQ0YzRhN2U4OGI4MzA=</response>
RECV: <failure xmlns=&quot;urn:ietf:params:xml:ns:xmpp-sasl&quot;><not-authorized /></failure>
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
If the server name is ngadavid.myftp.org and you can connect directly to ngadavid.myftp.org on port 5222 you dont need the ConnectServer property. You need it only if server name and the domain to reach the server is not the same. Its like MX-recoreds for email.
Are you sure your password is correct and the server is configured correctly?
I didnt test with a Soapbox server for a long time now. But i never had problems with DIGEST-MD5 auth yet on all other servers.

Alex
Avatar
cml #3
Member since Oct 2005 · 15 posts
Group memberships: Members
Show profile · Link to this post
But I failed to login as a general user and an administrator when I tried.
I have also used the Psi client to connect to the same server with the same domain name.
( I used "SoapBoxAdmin@ngadavid.myftp.org" as Jabber ID,
successfully login and could chat to other test accounts.  )

By the way, what is the property "ConnectServer" mean?

thanks ~
Avatar
Alex #4
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
hi,

did you look in the debug window from psi? Did it login with SASL, or the old style auth?
Can you create a test account for me on your server, so i can try it?

Alex
Avatar
cml #5
Member since Oct 2005 · 15 posts
Group memberships: Members
Show profile · Link to this post
It has XML console mode but I can't find debug window.
I think it login with SASL because I use Psi v0.9.3.
I have added an account for you to test.
Jid is "Alex@ngadavid.myftp.org" password is "Alex", and I also add a friend "SoapBoxAdmin@ngadavid.myftp.org" for you.

 :-D you are so kind ~ thank a lot
Avatar
cml #6
Member since Oct 2005 · 15 posts
Group memberships: Members
Show profile · Link to this post
thanks Alex~
The answer of the question I mentioned obove is force SASL_PLAIN in the library.
Alex tell me that use the agsXMPP.SaslEventHandler to catch the OnSaslStart Event and set the mechanism in the arguments. Then add code as follows:
private void XmppCon_OnSaslStart(object sender, SaslEventArgs args)     
{
    args.Auto = false;
    args.Mechanism =
    agsXMPP.protocol.sasl.Mechanism.GetMechanismName (agsXMPP.protocol.sasl.MechanismType.PLAIN);  
}
And Alex said:
but there still seems to be some problem in teh DIGEST-MD5 algoritm
i take closer look at it and hipe to get it also working on taiwan windows
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters: