Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
AliVireTechnologies1 #1
Member since Jun 2013 · 58 posts
Group memberships: Members
Show profile · Link to this post
Subject: Unable to authenticate while connecting with remoteIP
i am connecting my app with register domain but user is not authenticating although user exists in database, please help me what is problem. following is response.

{<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="10.1.245.56" version="1.0" ><stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="vtalk.viretechnologies.com" id="ba35a179" xml:lang="en" version="1.0" ><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>ANONYMOUS</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" />
  <register xmlns="http://jabber.org/features/iq-register" />
</stream:features><auth mechanism="DIGEST-MD5" xmlns="urn:ietf:params:xml:ns:xmpp-sasl" /><challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09InZ0YWxrLnZpcmV0ZWNobm9sb2dpZXMuY29tIixub25jZT0iMkthcm1aR0hOK1B6OGs0Y2YxR0IvUVphcmRrZVMrWG5oSlgzZDltMCIscW9wPSJhdXRoIixjaGFyc2V0PXV0Zi04LGFsZ29yaXRobT1tZDUtc2Vzcw==</challenge><response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dXNlcm5hbWU9IjEyMyIscmVhbG09InZ0YWxrLnZpcmV0ZWNobm9sb2dpZXMuY29tIixub25jZT0iMkthcm1aR0hOK1B6OGs0Y2YxR0IvUVphcmRrZVMrWG5oSlgzZDltMCIsY25vbmNlPSIzNDU4NTE1NTY0NGE0NjYyNjU1Nzc1NTc2OTQxNTEzNDRlNjQzMDY4NGM0YjMwNDk3YTQ3Njg2NTU2Nzg2Nzc3IixuYz0wMDAwMDAwMSxxb3A9YXV0aCxkaWdlc3QtdXJpPSJ4bXBwLzEwLjEuMjQ1LjU2IixjaGFyc2V0PXV0Zi04LHJlc3BvbnNlPWZjNWE5ZmMzZmRkYzVhMWZkYTNjMzAwYmRhYzNlYzA0</response><failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  <not-authorized />
</failure>}
Avatar
AliVireTechnologies1 #2
Member since Jun 2013 · 58 posts
Group memberships: Members
Show profile · Link to this post
this is my code,

  1. public static void ConnectXmpp(string domain, string phone, string password)
  2. {
  3.    SetLicense();
  4.  
  5.     xmppClient.XmppDomain = domain;
  6.     xmppClient.Username = phone;
  7.     xmppClient.Password = password;
  8.    
  9.     xmppClient.StartTls = false;
  10.  
  11.     xmppClient.Open();
  12. }
This post was edited on 2013-09-25, 08:56 by Alex.
Avatar
Alex #3
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
This is an authentication problem and has discussed here several times before. Please search the forum for auth error and xmpp domain.
Your server is configured to vtalk.viretechnologies.com and you try to connect over an IP

Alex
Avatar
AliVireTechnologies1 #4
Member since Jun 2013 · 58 posts
Group memberships: Members
Show profile · Link to this post
thankx it has been done.
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: