Configuring SASL for irssi
This script, by Michael Tharp and Jilles Tjoelker, comes from http://www.stack.nl/~jilles/irc/. Authentication information is stored in ~/.irssi/sasl.auth.
Copy the script, cap_sasl.pl, into your ~/.irssi/scripts/autorun directory or from wherever irssi loads startup scripts.
Make sure you have the Perl modules that the script requires: Crypt::OpenSSL::Bignum, Crypt::DH, Crypt::Blowfish, Math::BigInt, MIME::Base64. If you're using Linux, these are generally in distribution repositories.
Load the script using /script load autorun/cap_sasl.pl.
The script needs to be configured with /sasl set network nick password mechanism.
- network is the (case-sensitive) name of the network specified with /network add.
- nick is your primary registered nickname. A grouped nickname will not work.
- password is your NickServ password.
- mechanism is either PLAIN or DH-BLOWFISH. PLAIN sends your password unprotected, as plain text (which is fine when connecting over SSL, as the entire exchange is encrypted already). DH_BLOWFISH separately encrypts your services password before sending it to the server.
Save the settings with /sasl save.
If everything has been configured correctly, the next time you connect you should see the message:SASL authentication successful
The script also supports /sasl show and /sasl load. Show lists currently-configured networks and the saved credentials. Load re-reads the sasl.auth file. A /sasl set network command with no other arguments will delete the configuration for that network.
If you know of any additions or corrections, or would like to contribute improvements, contact us at the email below.