How to use SASL Authentication?

If SASL is on, how to set the client params?

Could anyone show me a demo ? Thanks very much!

And BTW, will the XMPP Server do sth. in order to enable SASL Authentication?

If SASL is on, how to set the client params?
Which parameters? GSSAPI? Most of the time you will just have a tuple of username and password.

And BTW, will the XMPP Server do sth. in order to enable SASL Authentication?
SASL Authenticate is required by the current XMPP RFC(s) 6120. I don’t know a up-to-date XMPP server that doesn’t at lest support SASL DIGEST-MD5.

sorry i’m not quite understand SASL.

I have thought that if I add a param some called SASL key or SASL file when login, and the server may have the same file or key, the two compare them, and judge whether to let it login.