D
D
Dmitry2014-01-09 18:11:27
XMPP
Dmitry, 2014-01-09 18:11:27

Solving authentication error when connecting xmpp in pidgine?

There is a problem with not connecting jabber'a (xmpp) in the pidgin client to the server with a characteristic error:
"Server does not use any supported authentication method"
The solution was found in the missing line in the hosts of the form:
127.0.1.1 $ name_host
No. When connecting, the gajima client, the connection is made without dancing around the hosts.
What is the meaning of 127.0.1.1 and how is this address related to Pidgin'om?
I also attach the contents of hosts during the experiment on my machine and pidgin's debug log.

127.0.0.1	localhost
#127.0.1.1	 username

Pidgin Debug Log : Thu 09 Jan 2014 06:40:52 PM MSK
(18:20:38) account: Connecting to account [email protected]/.
(18:20:38) connection: Connecting. gc = 0x7f952e9b2770
(18:20:38) dnssrv: querying SRV record for servername.com: _xmpp-client._tcp.servername.com
(18:20:38) dnssrv: res_query returned an error
(18:20:38) dnsquery: Performing DNS lookup for servername.com
(18:20:38) dns: Wait for DNS child 26693 failed: No child processes
(18:20:38) dns: Created new DNS child 26705, there are now 1 children.
(18:20:38) dns: Successfully sent DNS request to child 26705
(18:20:38) dns: Got response for 'servername.com'
(18:20:38) dnsquery: IP resolved for servername.com
(18:20:38) proxy: Attempting connection to 213.180.204.3
(18:20:38) proxy: Connecting to servername.com:5222 with no proxy
(18:20:38) proxy: Connection in progress
(18:20:38) proxy: Connecting to servername.com:5222.
(18:20:38) proxy: Connected to servername.com:5222.
(18:20:38) jabber: Sending ([email protected]): <?xml version='1.0' ?>
(18:20:38) jabber: Sending ([email protected]): <stream:stream to='servername.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
(18:20:39) jabber: Recv (191): <?xml version='1.0' encoding='UTF-8'?><stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="servername.com" id="3df4f547" xml:lang="en" version="1.0">
(18:20:39) jabber: Recv (436): <stream:features><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"></starttls><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>DIGEST-MD5</mechanism><mechanism>JIVE-SHAREDSECRET</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>
(18:20:39) jabber: Sending ([email protected]): <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
(18:20:39) jabber: Recv (50): <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
(18:20:39) nss: subject=CN=d3015.serverclub.com issuer=CN=d3015.serverclub.com
(18:20:39) certificate/x509/tls_cached: Starting verify for servername.com
(18:20:39) certificate/x509/tls_cached: Checking for cached cert...
(18:20:39) certificate/x509/tls_cached: ...Found cached cert
(18:20:39) nss/x509: Loading certificate from /home/username/.purple/certificates/x509/tls_peers/servername.com
(18:20:39) certificate/x509/tls_cached: Peer cert matched cached
(18:20:39) nss/x509: Exporting certificate to /home/username/.purple/certificates/x509/tls_peers/servername.com
(18:20:39) util: Writing file /home/username/.purple/certificates/x509/tls_peers/servername.com
(18:20:39) certificate: Successfully verified certificate for servername.com
(18:20:39) jabber: Sending (ssl) ([email protected]): <stream:stream to='servername.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
(18:20:39) jabber: Recv (ssl)(566): <?xml version='1.0' encoding='UTF-8'?><stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="servername.com" id="3df4f547" xml:lang="en" version="1.0"><stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>DIGEST-MD5</mechanism><mechanism>JIVE-SHAREDSECRET</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>
(18:20:39) sasl: sasl_state is -1, failing the mech and trying again
(18:20:39) connection: Connection error on 0x7f952e9b2770 (reason: 3 description: Server does not use any supported authentication method)
(18:20:39) account: Disconnecting account [email protected]/ (0x7f952dd3f6d0)
(18:20:39) connection: Disconnecting connection 0x7f952e9b2770
(18:20:39) jabber: Sending (ssl) ([email protected]): </stream:stream>
(18:20:39) connection: Destroying connection 0x7f952e9b2770
(18:20:39) util: Writing file prefs.xml to directory /home/username/.purple
(18:20:39) util: Writing file /home/username/.purple/prefs.xml
(18:20:44) util: Writing file accounts.xml to directory /home/username/.purple
(18:20:44) util: Writing file /home/username/.purple/accounts.xml
(18:40:52) prefs: /pidgin/filelocations/last_save_folder changed, scheduling save.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pr0l, 2014-01-09
@imert

127.0.0.1 internal loopback for the virtual interface, some programs communicate over it by referring to localhost. previously asked a question about localhost and gave the correct answer to it

M
maxaon, 2014-01-10
@maxaon

Perhaps "reverse dns lookup" is to blame when connecting ssl

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question