Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
Kelsin #1
User title: Kelsin
Member since Nov 2011 · 21 posts
Group memberships: Members
Show profile · Link to this post
Subject: User name and password authentication problem
hi,alex
     now i can connect to my openfire server,but it dont  can verify user name and password, so i dont know what can i how to do this?
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
put the username in the Username property and the password in the Password property of the XmppClient object before you connect.
MatriX will use this credentials for authentication then.

Alex
Avatar
Kelsin #3
User title: Kelsin
Member since Nov 2011 · 21 posts
Group memberships: Members
Show profile · Link to this post
hi?alex
  thank you for your reply.this is my code ,if it is connect ,this username and password is wrong,is dont get the friend list.but username and password is true,it can get the friend list.
   this the connect code:
            xmppClient.Username=Contact.UserName;
            xmppClient.Password = Contact.Password;
           
           

            xmppClient.XmppDomain = "****";

            xmppClient.Uri = new Uri("http://****:7070/http-bind/");
            xmppClient.Show = Matrix.Xmpp.Show.chat;

            xmppClient.Status = "Hello,welcome come to windows phone 7";
            xmppClient.Open();
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Please post your xml log
This post was edited on 2012-01-19, 17:16 by Alex.
Avatar
Kelsin #5
User title: Kelsin
Member since Nov 2011 · 21 posts
Group memberships: Members
Show profile · Link to this post
hi,alex
   i say that is so the password and the username  is wrong ,what can i do? server dont reply this message, say this password is wrong or this username is wrong. How should I let customers know them to input the wrong user name and password?
Avatar
Alex #6
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
MatriX only forwards the error message of the server to you. Please consult your server vendor and ask if this behaviour can be changed.
But I guess not. Most servers do this for security reason. When a server would tell you that the username is wrong then malicious software could detect which users are registered and which not. This is a security leak.

Alex
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: