-
Notifications
You must be signed in to change notification settings - Fork 75
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
Exit status when user is not member of group #16
Comments
Yeah, this seems strange to me too. Maybe the last line in |
this whole bit of code can probably be removed. I added it initially because I wanted to make the deployment of pam_ussh as easy as possible, so we could say that if a user wasn't in a particular group then they'd use whatever the "old" pam sudo configuration was. this was mitigation for deploying a potentially breaking change in prod. is this option useful to you at all? |
also, I left uber ~6 months ago or so and this project hasn't been maintained by anyone since I left. I'm going to fork this, and probably rename it. |
I don't need this option. It just seemed weird; I would have thought that if the intention was to fall through to subsequent modules, it would have returned PAM_IGNORE rather than PAM_SUCCESS. |
Yeah, I think the pam configuration itself should be adjusted with
That's good to hear, I've been evaluating if this project is useful for us and likely have a few pull requests coming, was worried that it may have been abandoned. Can you ping this issue when you fork the repo? |
@shane-axiom I will be available to review any pull requests that come this way. @pmoody- if you decide to fork this repo then I will consider your repo to be the upstream. |
Perhaps I am being extremely dense, but I am scratching my head when I look at the code here:
It seems to me that if the "group" option is set, but the user is not a member of that group, the module will unconditionally return
AuthSuccess
- which implies that sudo access is granted.I was expecting the final statement to say
return AuthError
. If that's true, it could be more clearly expressed as:However if the current behaviour is as intended, then I think the documentation of the "group" option could be made much clearer. "Users who are in this group must authenticate with ssh-agent; all other users are granted access without authenticating at all"
The text was updated successfully, but these errors were encountered: