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

Handle cases when auth groups are unset #353

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zdohnal
Copy link
Contributor

@zdohnal zdohnal commented Mar 18, 2024

Currently, pappl based applications require authentication every time for any request if authentication module is set, even if authentication group(s) is set to None.

With this PR, admin can set admin and print group to None. Every admin action is allowed if admin group is None. For printing jobs, Validate-Job, Print-Job, Create-Job are allowed, Send-Document if the requesting client is owner of the job - value of requesting-user-name is used as default value, in case authorization field does not contain it.

This allows smooth printing to the printer application via CUPS when printer application uses PAM module to protect against simple attacks.

@michaelrsweet michaelrsweet self-assigned this Mar 18, 2024
@michaelrsweet michaelrsweet added bug Something isn't working priority-low labels Mar 18, 2024
@michaelrsweet michaelrsweet added this to the v2.0 milestone Mar 18, 2024
Copy link
Owner

@michaelrsweet michaelrsweet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments in PR #354.

Currently, pappl based applications require authentication every time
for any request if authentication module is set, even if authentication
group(s) is set to `None`.

With this PR, admin can set admin and print group to `None`. Every admin
action is allowed if admin group is `None`. If the connection is local,
no group is set and we are missing authentication field, use
`requesting-user-name`.

This allows smooth printing to the printer application via CUPS when
printer application uses PAM module to protect against simple attacks.
Copy link
Owner

@michaelrsweet michaelrsweet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments for #354

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority-low
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants