nicferrier / shoes-off

an IRC bouncer written in EmacsLisp
13 stars 2 forks source link

add sasl authentication #6

Open zabbal opened 11 years ago

zabbal commented 11 years ago

Emacs have built-in sasl library and freenode supports sasl authentication (mandates it in some cases in fact). It would be shame not to use those features :)

Especially considering that it might save you from dealing with nickserv.

nicferrier commented 11 years ago

This isn't a shoes-off question? It's an rcirc question?

where does freenode mandate sasl?

daimrod commented 11 years ago

Where would you wish to have SASL authentification? If it's Shoes-off -> Freenode then I've already added it, you can try it by pulling my repository (see the push request), if it's IRC client -> Shoes-off then I've no idea how it could be done.

My solution is to setup an SSH tunel to forward the port on which shoes-off is listening to my localhost:

ssh -N -L <port>:localhost:<port> user@server

and to force shoes-off to listen on localhost only. It's also implemented in my PR, nicferrier will probably merge it when he will have some time, but you can already try it (just clone my repo).

Daimrod/Greg

zabbal commented 11 years ago

That's Shoes-off question of course. The Freenode mandates sasl auth for connections coming from TOR and from some isp networks. Thanks a lot daimrod - I'll have a look at your repo: sasl for Shoes-off -> Freenode is exactly what I was looking for. Looking forward for it to be available via emacs packages.

Could you provide configuration example for setting up shoes-off with sasl auth against freenode?

daimrod commented 11 years ago

My bad, I've interpreted SASL as SSL, but ofc it's not the same at all.

But then no, it's an RCIRC issue because under the hood, shoes-off uses RCIRC to connect to IRC servers. So, if RCIRC supports SASL it shouldn't be hard to use it with shoes-off. If it doesn't then we will have to add

it.

Daimrod/Greg

nicferrier commented 11 years ago

I am also interested in fixing any deficiencies with rcirc so maybe I'll take a look.