[jdev] How to do SASL authentication in C/C++

Maciek Niedzielski machekku at uaznia.net
Tue Nov 11 11:19:34 CST 2008


ashiraz wrote:
> Remko Tronçon;4907 Wrote: 
>> Please base yourself on http://www.ietf.org/rfc/rfc3920.txt and
>> http://www.ietf.org/rfc/rfc3921.txt That's the only official and
>> correct way to implement an XMPP client.
> I am not merely usingthe above wiki I am also using Oreilly's book on Jabber.
This book is already very old.
Non-SASL authentication (jabber:iq:auth) has already been obsoleted (see 
http://xmpp.org/extensions/xep-0078.html). Many servers still support it 
though.

The error you get:

<error code="405" type="cancel">
<not-allowed xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
<text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Connection
must
be encrypted.
</text>
</error>

says that you gmail server would allow you using this method only if 
your connection was encrypted (because in gmail setup this leads to 
sending password in plain text).

-- 
Maciek
  xmpp:machekku at uaznia.net



More information about the JDev mailing list