lhost / sendxmpp

perl-script to send xmpp (jabber), similar to what mail(1) does for mail.
63 stars 22 forks source link

Error 'AuthSend': error: bad-protocol[?] #36

Open l29ah opened 4 years ago

l29ah commented 4 years ago
‰ sendxmpp -v -t --tls-ca-path /etc/ssl/certs -f ~/.sendxmpprc-bitcheese
sendxmpp: config: 'jserver' => 'bitcheese.net'
sendxmpp: config: 'password' => 'FOO'
sendxmpp: config: 'username' => 'l29ah'
sendxmpp: config: 'component' => 'bitcheese.net'
sendxmpp: ssl_verify: 1
sendxmpp: tls_ca_path: /etc/ssl/certs
sendxmpp: Connect: 1
Error 'AuthSend': error: bad-protocol[?]
sendxmpp: Disconnect
l29ah commented 4 years ago

Seems like it confused about challenge-response auth:

XML::Stream: Send: (<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'></auth>)
...
XML::Stream: Read: buff(<challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>буковки</challenge>)
XML::Stream: Send: (<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>ещё буковки</response>)
XML::Stream: Read: buff(<challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>и ещё</challenge>)
XML::Stream: Send: (<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'></response>)
niknah commented 2 years ago

Had this problem with talk.google.com, used the -n flag and fixed it.

l29ah commented 2 years ago

Disabling TLS certificate verification isn't an option to me, so i just rewritten sendxmpp: https://hackage.haskell.org/package/hsendxmpp