Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SASL over SSL never happens #250

Closed
martinb3 opened this issue Aug 29, 2014 · 3 comments
Closed

SASL over SSL never happens #250

martinb3 opened this issue Aug 29, 2014 · 3 comments

Comments

@martinb3
Copy link

@gsf @martynsmith per #125

I don't seem to be able to use SASL over SSL with this patch. I get disconnected in this section of code, before the CAP ever gets sent: https://github.com/gsf/node-irc/blob/0dd7ac1af65b7d70f6c0b31fb17ddc659c3bc516/lib/irc.js#L621-L625

It seems like a PASS should not be sent while connecting over SSL (causing a disconnect) before SASL is attempted (or at least capabilities are read). Over SSL with SASL enabled, my logs come out like so:

29 Aug 12:48:20 - Sending irc NICK/USER
29 Aug 12:48:21 - SEND: PASS abc123zyx
29 Aug 12:48:22 - SEND: NICK nick_name
29 Aug 12:48:23 - SEND: USER my_user 8 * :nodeJS IRC client
29 Aug 12:48:24 - Unhandled message: { command: 'ERROR',
  rawCommand: 'ERROR',
  commandType: 'normal',
  args: [ 'Closing link: ([email protected]) [Access denied by configuration]' ] }
29 Aug 12:48:24 - Connection got "close" event

(Notice how CAP never gets sent here in this log)

@gsf
Copy link
Contributor

gsf commented Aug 29, 2014

Can't say I ever tested it over SSL. Have you tried moving that block into the connect listener after the SASL attempt?

@filler
Copy link

filler commented Jun 5, 2015

I can confirm that SASL + IRC in node-irc renders Access denied by Access denied by configuration for me. But I believe Im connecting to the same SASL+SSL endpoint as @martinb3 ... ;)

Meanwhile, SASL + SSL works against freenode just fine with the server + passwd subbed out. Doh.

@jirwin
Copy link
Collaborator

jirwin commented Jan 29, 2016

This is working now. If it isn't actually working, please re-open and include details for your specific server responses.

@jirwin jirwin closed this as completed Jan 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants