]> jfr.im git - irc/freenode/web-7.0.git/blobdiff - content/kb/sasl/irssi.md
Add SASL instructions for LimeChat on macOS
[irc/freenode/web-7.0.git] / content / kb / sasl / irssi.md
index 21d82ffa2888cda055fb27d3006dcdc2a7710a37..8745b56360e83097f47c80ac2fef4c205a38aeb7 100644 (file)
@@ -1,21 +1,39 @@
-Title: Configuring SASL for irssi
+Title: Configuring SASL for Irssi
 ---
-This script, originally by Michael Tharp and Jilles Tjoelker has been further developed by Mantas Mikulėnas (grawity) and lives on scripts.irssi.org. Authentication information may be stored in ~/.irssi/sasl.auth.
+The setup for SASL on Irssi differs depending on the version you have (you can
+find out by running `irssi -v` in your nearest shell).
 
-1. Copy the script, [cap_sasl.pl <i class="fa fa-external-link" aria-hidden="true"></i>](http://scripts.irssi.org/scripts/cap_sasl.pl), into your ~/.irssi/scripts/autorun directory or from wherever irssi loads startup scripts.
-2. The script requires at least the Perl module [MIME::Base64 <i class="fa fa-external-link" aria-hidden="true"></i>](https://metacpan.org/module/MIME::Base64). If you're using Linux, Perl modules are generally in distribution repositories, or you can get them directly from CPAN. If you cannot install them for the whole system, you may be able to use [local::lib <i class="fa fa-external-link" aria-hidden="true"></i>](https://metacpan.org/module/local::lib).
-3. Load the script using `/script load autorun/cap_sasl.pl`.
-4. 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`
+# Irssi 0.8.18 or later
 
-   `nick` is your registered nickname
+Recent Irssi versions include built-in SASL support via `/network`:
 
-   `password` is your NickServ password
+    /network add -sasl_username <login> -sasl_password <password> -sasl_mechanism PLAIN freenode
+    /server add -auto -net freenode -ssl -ssl_verify chat.freenode.net 6697
+    /save
 
-   `mechanism` should be `PLAIN`. `PLAIN` sends your password unprotected, as plain text (which is fine when connecting over SSL, as the entire exchange is encrypted already).
-5. Save the settings with `/sasl save`
-6. If everything has been configured correctly, the next time you connect you should see the message:
-`SASL authentication successful`
+## Troubleshooting
 
-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.
+To check that the setting was correct, run `/network` and confirm that the freenode entry looks like this:
+
+    freenode: sasl_mechanism: plain, sasl_username: gryllida, sasl_password: (pass)
+
+All three items (mechanism, username, and password) must be set.
+
+# Older versions
+
+These versions need a separate script in order to support SASL: `cap_sasl.pl`.
+You can install it from <https://scripts.irssi.org>:
+
+    mkdir -p ~/.irssi/scripts/autorun
+    wget https://scripts.irssi.org/scripts/cap_sasl.pl -O ~/.irssi/scripts/cap_sasl.pl
+    ln -sf ../cap_sasl.pl ~/.irssi/scripts/autorun/
+
+Now load and configure it inside Irssi:
+
+    /script load cap_sasl
+    /network add freenode
+    /server add -auto -net freenode -ssl -ssl_verify chat.freenode.net 6697
+    /sasl set freenode <login> <password> PLAIN
+    /sasl save
+    /save