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

Rework the poll logic #234

Merged
merged 3 commits into from
Oct 11, 2024
Merged

Rework the poll logic #234

merged 3 commits into from
Oct 11, 2024

Conversation

dmulder
Copy link
Collaborator

@dmulder dmulder commented Oct 11, 2024

Fixes #219

This is meant to address the issues in #219. Unfortunately, it appears that SSHD is not terminating the auth attempt when the ssh session times out. There isn't really anything we can do about that. We can however, handle this a little better in the communication between the daemon and the pam module. Now the daemon will do nothing unless prompted by the pam module (when polling). I also added code to honor the DAG timeout specified by Microsoft at init time.

Checklist

  • This pr contains no AI generated code
  • cargo fmt has been run
  • cargo clippy has been run
  • A functionality test has been added
  • make test has been run and passes

Sometimes the daemon doesn't get the message to
terimate polling. Rework the logic to only poll
when explicitly requested by the PAM module. A
necessary side-effect is that this required some
work on the aad-tool auth-test command, fixing
some pam cases.

Signed-off-by: David Mulder <dmulder@samba.org>
Signed-off-by: David Mulder <dmulder@samba.org>
Signed-off-by: David Mulder <dmulder@samba.org>
@dmulder dmulder merged commit 39de06b into stable-0.6.x Oct 11, 2024
5 checks passed
@dmulder dmulder deleted the stable-0.6.x_rework_poll_logic branch October 11, 2024 14:33
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

Successfully merging this pull request may close these issues.

1 participant