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

allow "-" to prepend pam type value. #146

Open
gitkodak opened this issue Dec 1, 2016 · 0 comments
Open

allow "-" to prepend pam type value. #146

gitkodak opened this issue Dec 1, 2016 · 0 comments

Comments

@gitkodak
Copy link

gitkodak commented Dec 1, 2016

For example, "-session" is a valid pam entry.

If you try to use it, you get:

Invalid value "-session". Valid values are account, auth, password, session.

From the pam.d(8) manual page:

If the type value from the list above is prepended with a - character the PAM library will not log to the system log if it is not possible to load the module because it is missing in the system. This can be useful especially for modules which are not always installed on the system and are not required for correct authentication and authorization of the login session.

It could be argued that this situation should be handled more intelligently with parameters, but it is valid syntax.

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

1 participant