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

Use authentication info as user.id if available. #125

Open
docwhat opened this issue Jul 29, 2014 · 4 comments
Open

Use authentication info as user.id if available. #125

docwhat opened this issue Jul 29, 2014 · 4 comments

Comments

@docwhat
Copy link

docwhat commented Jul 29, 2014

If the IRC server(s) uses authentication, the user.id should match the authenticated identity instead of the user's nick.

This would allow mapping user names to an actual identity in an organization. Such as for notifications, permissions, etc.

It shouldn't be turned on by default, it should require a setting of some sort.

On our system, we're using ngirc with the PAM plugin to authenticate. I can help set up a test system for you if you want.

@martinb3
Copy link

While undocumented, HUBOT_IRC_USERNAME appears to do what you want.

@docwhat
Copy link
Author

docwhat commented Aug 27, 2014

@martinb3 That's actually is for logging hubot into an authenticated irc server.

I'm saying, I have hubot on an authenticated irc server and the user.id reported for a specific user is their nickname. It would be better if the user.id was the username that the user authenticated against IRC with.

e.g. I log into the IRC server with username 'docwhat' and password 'sekret'. I then run /nick joecool. I expect hubot to record my user.id as 'docwhat' (not 'joecool').

Sorry, this is hard to explain. :-/

@martinb3
Copy link

e.g. I log into the IRC server with username 'docwhat' and password 'sekret'. I then run /nick joecool. I expect hubot to record my user.id as 'docwhat' (not 'joecool').

If I connect as nick joecool and HUBOT_IRC_USERNAME=docwhat, I get the end state you're describing. Is it only because you're changing nicks after you login? BTW, the NICK is sent during authentication as well, it isn't something that normally happens after (often pass, then nick, then user) -- and hubot-irc is sending all three based on the three separate settings for nick, password, and user.

@docwhat
Copy link
Author

docwhat commented Sep 3, 2014

Ah. I see how I was failing to explain.

My hubot is called "hubot".

I am called "docwhat".

I'm asking about the user.id for storing other IRC users in the brain.

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

2 participants