-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
pam: trigger pam_authenticate on login #3966
Conversation
Tested with basic |
Can you add test coverage, we have a PAM module we use for testing that can be configured to test if Teleport calls the authentication function. https://github.com/gravitational/teleport/blob/master/modules/pam_teleport/pam_teleport.c |
Some weird test stuff happening here: Jenkins:
It looks like Drone timed out and killed the container too. |
I think it's because we're reading from Added an @russjones refactored the testing setup and added missing test cases. |
Need to re-run |
ok, I fixed the buildbox build steps, but looks like drone uses a cached version of buildbox. |
The reason is mostly because Jenkins uses I am planning to modify the Drone pipeline very soon so that it pulls the buildbox image and rebuilds before running the tests. With that said, this has actually got me wondering whether the shared build cache could be influencing the test failures in Drone... |
Looks like #3982 will soon fix the problem. |
Do Teleport users need to set anything, or is this automatically on with?
|
@benarent automatically on with that config field, yes. |
👍 from me. I tested it with Duo and it worked perfectly. New Video Demo: https://share.getcloudapp.com/YEupwAAl |
This will trigger any "auth" PAM modules configured on the system for teleport. For example, Duo 2FA prompt on each connection. The module will be able to interact with the user (e.g. print prompts). Also, make PAM env var propagation consistent for port forwarding sessions. Fixes #3929
- update PAM policies and module for "auth" step - use pam_teleport.so from the repo directory instead of guessing OS-specific global path - add tests covering all failure scenarios and generally refactor PAM tests
This removes the need for libpam-devel on the host and reliably compiles pam_teleport.so in our CI pipeline. As part of this, combine build.assets/pam/ and modules/pam_teleport to avoid the need to sync them.
Updated expected module output.
Need approval from @klizhentas or @russjones on this one |
This will trigger any "auth" PAM modules configured on the system for
teleport. For example, Duo 2FA prompt on each connection.
The module will be able to interact with the user (e.g. print prompts).
Also, make PAM env var propagation consistent for port forwarding
sessions.
Fixes #3929