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

NAS-131893 / 25.04 / lazy-initialize pam context #14730

Merged
merged 1 commit into from
Oct 19, 2024
Merged

Conversation

anodos325
Copy link
Contributor

During the upgrade process we import middleware in a chroot environment which breaks setup of the AuthenticationContext dataclass since the ctype symbol lookup for pam_start fails.

This commit makes it so that we don't initialize a pam context for App instances until endpoint auth.libpam_authenticate is called.

During the upgrade process we import middleware in a chroot
environment which breaks setup of the AuthenticationContext
dataclass since the ctype symbol lookup for pam_start fails.

This commit makes it so that we don't initialize a pam context
for App instances until endpoint auth.libpam_authenticate is
called.
@anodos325 anodos325 requested a review from Qubad786 October 19, 2024 17:46
@anodos325 anodos325 added the jira label Oct 19, 2024
@bugclerk bugclerk changed the title lazy-initialize pam context NAS-131893 / 25.04 / lazy-initialize pam context Oct 19, 2024
@bugclerk
Copy link
Contributor

@anodos325 anodos325 merged commit 5d3732a into master Oct 19, 2024
3 checks passed
@anodos325 anodos325 deleted the fix-libpam-upgrade branch October 19, 2024 21:54
@bugclerk
Copy link
Contributor

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Oct 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants