agl / xmpp-client

An XMPP client with OTR support
BSD 3-Clause "New" or "Revised" License
365 stars 71 forks source link

Xmpp-client not authenticating with Riseup #93

Closed tdruiva closed 9 years ago

tdruiva commented 9 years ago

Hi,

I think Riseup did some change in their server recently because xmpp-client stopped to work with it. It's failing to authenticate.

Authentication log:

On getFeatures, this is the established stream: xml.StartElement{Name:xml.Name{Space:"http://etherx.jabber.org/streams", Local:"stream"}, Attr:[]xml.Attr{xml.Attr{Name:xml.Name{Space:"xmlns", Local:"db"}, Value:"jabber:server:dialback"}, xml.Attr{Name:xml.Name{Space:"xmlns", Local:"stream"}, Value:"http://etherx.jabber.org/streams"}, xml.Attr{Name:xml.Name{Space:"", Local:"version"}, Value:"1.0"}, xml.Attr{Name:xml.Name{Space:"", Local:"from"}, Value:"riseup.net"}, xml.Attr{Name:xml.Name{Space:"", Local:"id"}, Value:"b674106a-4f5f-46e1-a276-d5eefdc8d5e1"}, xml.Attr{Name:xml.Name{Space:"", Local:"to"}, Value:""}, xml.Attr{Name:xml.Name{Space:"http://www.w3.org/XML/1998/namespace", Local:"lang"}, Value:"en"}, xml.Attr{Name:xml.Name{Space:"", Local:"xmlns"}, Value:"jabber:server"}}}

And it's returning empty features.

I also use Gmail with xmpp-client (its working fine), looking their log the stream have a particular different Value. Their are returning "jabber:client" instead of "jabber:server" as Riseup did.

I tried to force the authentication by plain skipping the if !havePlain but looks like their are not accepting it: Failed to connect to XMPP server: xmpp: authentication failure: invalid-mechanism

ghost commented 9 years ago

Hi, can you try to change the port to 5222?

xmpp.riseup.net: 4cjw6cwpeaeppfqz.onion (ports 5222, 5269) https://help.riseup.net/en/tor

micah commented 9 years ago

5269 is for server to server connections, I dont think connecting a client to that port is going to work, try as @gusgr suggests

tdruiva commented 9 years ago

Through the port 5222 is not-authorized

ghost commented 9 years ago

@tdruiva, it's working for me. maybe wrong password?

tdruiva commented 9 years ago

You're right. Dammit copy+paste from pass manager facepalm

Tks!