web-dev-qa-db-fra.com

Impossible de se connecter à Google Talk à l'aide de Pidgin (erreur SASL)

Après une nouvelle installation d'Ubuntu 11.10, Pidgin a cessé de se connecter à un service Jabber (Google Talk et un MI local). Ce qui est étrange, c'est que la même configuration fonctionne sur un ordinateur portable avec Ubuntu 11.10, mais pas sur un poste de travail. Le répertoire .purple a été copié d'un ordinateur portable vers un poste de travail et ne fonctionne toujours pas. Lors de l'exécution de piding -d > Pidgin.log, on observe ce qui suit:

(16:06:25) account: Connecting to account [email protected]/.
(16:06:25) connection: Connecting. gc = 0x7f38e3828ea0
(16:06:25) dnssrv: querying SRV record for gmail.com: _xmpp-client._tcp.gmail.com
(16:06:25) dnssrv: found 5 SRV entries
(16:06:25) dnsquery: Performing DNS lookup for xmpp.l.google.com
(16:06:25) dns: Wait for DNS child 11596 failed: No child processes
(16:06:25) dns: Created new DNS child 11867, there are now 1 children.
(16:06:25) dns: Successfully sent DNS request to child 11867
(16:06:25) dns: Got response for 'xmpp.l.google.com'
(16:06:25) dnsquery: IP resolved for xmpp.l.google.com
(16:06:25) proxy: Attempting connection to 173.194.70.125
(16:06:25) proxy: Connecting to xmpp.l.google.com:5222 with no proxy
(16:06:25) proxy: Connection in progress
(16:06:25) proxy: Connecting to xmpp.l.google.com:5222.
(16:06:25) proxy: Connected to xmpp.l.google.com:5222.
(16:06:25) Jabber: Sending ([email protected]): <?xml version='1.0' ?>
(16:06:25) Jabber: Sending ([email protected]): <stream:stream to='gmail.com' xmlns='Jabber:client' xmlns:stream='http://etherx.Jabber.org/streams' version='1.0'>
(16:06:25) Jabber: Recv (379): <stream:stream from="gmail.com" id="49198E875F30F7D0" version="1.0" xmlns:stream="http://etherx.Jabber.org/streams" xmlns="Jabber:client"><stream:features><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-GOOGLE-TOKEN</mechanism><mechanism>X-OAUTH2</mechanism></mechanisms></stream:features>
(16:06:25) Jabber: Sending ([email protected]): <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
(16:06:25) Jabber: Recv (50): <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
(16:06:25) nss: subject=CN=gmail.com,O=Google Inc.,L=Mountain View,ST=California,C=US issuer=CN=Google Internet Authority,O=Google Inc,C=US
(16:06:25) nss: subject=CN=Google Internet Authority,O=Google Inc,C=US issuer=OU=Equifax Secure Certificate Authority,O=Equifax,C=US
(16:06:25) nss: subject=OU=Equifax Secure Certificate Authority,O=Equifax,C=US issuer=OU=Equifax Secure Certificate Authority,O=Equifax,C=US
(16:06:25) certificate/x509/tls_cached: Starting verify for gmail.com
(16:06:25) certificate/x509/tls_cached: Checking for cached cert...
(16:06:25) certificate/x509/tls_cached: ...Found cached cert
(16:06:25) nss/x509: Loading certificate from /home/david/.purple/certificates/x509/tls_peers/gmail.com
(16:06:25) certificate/x509/tls_cached: Peer cert matched cached
(16:06:25) nss/x509: Exporting certificate to /home/david/.purple/certificates/x509/tls_peers/gmail.com
(16:06:25) util: Writing file /home/david/.purple/certificates/x509/tls_peers/gmail.com
(16:06:25) certificate: Successfully verified certificate for gmail.com
(16:06:25) Jabber: Sending (ssl) ([email protected]): <stream:stream to='gmail.com' xmlns='Jabber:client' xmlns:stream='http://etherx.Jabber.org/streams' version='1.0'>
(16:06:25) Jabber: Recv (ssl)(138): <stream:stream from="gmail.com" id="F6FD74872873A647" version="1.0" xmlns:stream="http://etherx.Jabber.org/streams" xmlns="Jabber:client">
(16:06:25) Jabber: Recv (ssl)(197): <stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>X-GOOGLE-TOKEN</mechanism><mechanism>X-OAUTH2</mechanism></mechanisms></stream:features>
(16:06:25) sasl: sasl_state is -1, failing the mech and trying again
(16:06:25) connection: Connection error on 0x7f38e3828ea0 (reason: 3 description: Server does not use any supported authentication method)
(16:06:25) account: Disconnecting account [email protected]/ (0x7f38e2ca5b50)
(16:06:25) connection: Disconnecting connection 0x7f38e3828ea0
(16:06:25) Jabber: Sending (ssl) ([email protected]): </stream:stream>
(16:06:25) connection: Destroying connection 0x7f38e3828ea0

Comme vous pouvez le constater, le certificat semble être valide. Le problème est le suivant:

sasl: sasl_state is -1, failing the mech and trying again

Il n'y a pas de pare-feu activé, il doit donc y avoir autre chose. Des idées?

3
David Kuridža

Pour une raison quelconque, /etc/hosts contenait un nom d'hôte incorrect pour 127.0.0.1. Après l'avoir modifié, cela a commencé à fonctionner. Hope aide aussi quelqu'un :)

9
David Kuridža

Vérifiez le nom d'hôte de votre système dans/etc/hostname. Puis modifiez-le dans le fichier/etc/hosts. Cela résoudra votre problème :-)

3
Sandeep Gurung

J'ai eu le même problème dans Ubuntu 12.04. Quand j'ai vu le commentaire précédent, j'ai vérifié /etc/hosts et il était vide. J'ai donc ajouté ce qui suit:

127.0.0.1 localhost  
127.0.1.1 ubuntu  

Voici à quoi cela ressemble maintenant:

root@ubuntu:/etc/apt/apt.conf.d# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 ubuntu

Puis

root@ubuntu:/etc/apt/apt.conf.d# /etc/init.d/networking restart  
 * Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces  
 * Reconfiguring network interfaces...   

Quittez Pidgin et ouvrez-le à nouveau. Voilà, ça marche comme un charme maintenant. Espérons que cela aidera les autres aussi.

1
akash

J'ai eu le même problème. Il s'est avéré que j'avais activé la vérification en deux étapes sur mon compte Google. Je suis simplement allé dans les paramètres de mot de passe spécifiques à l'application (dans Google) et j'ai révoqué l'accès à Pidgin. Ensuite, j'ai rajouté Pidgin et généré un nouveau mot de passe spécifique à l'application. Je l'ai entré dans les paramètres de mon compte Google Talk dans Pidgin. Désormais, tout fonctionne comme il se doit.

0
Jim