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

Error in service module #17

Open
rezen opened this issue Aug 27, 2015 · 2 comments
Open

Error in service module #17

rezen opened this issue Aug 27, 2015 · 2 comments

Comments

@rezen
Copy link

rezen commented Aug 27, 2015

One thing I noticed is an exception is thrown from PAM when there an attempt to login with a user that does not exist. https://github.com/Rush/node-authenticate-pam/blob/master/authenticate_pam.cc#L114

Should maybe that error be returned in the callback instead? The error is triggered in the context of the authenticate call so it seems reasonable that call would return the error.

@andersevenrud
Copy link

Leaving this for anyone else getting this error, but is trying with a valid user:

I just assisted someone with this exact problem, and in his case he had to do npm install -g to make it run properly.

@andersevenrud
Copy link

I was scratching my head over this again today.... and it turns out, giving invalid login (username) throws this error as well in some cases! I remember getting a different error message in the past, so not quite sure what's going on. (maybe something triggered by my local PAM configuration)

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