-
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
TELEPORT_ROLES not available on PAM modules on Ubuntu. #3692
Comments
Recording some notes:
I'll keep digging on possible |
Using `pam_putenv` from `libpam` exposes these env vars to `pam_exec.so` and possibly other built-in PAM modules. Keep setting them via `os.Setenv` too, for `pam_script.so` to use. Updates #3692
Oops, I take that back. @russjones do we know which version of Ubuntu / pam / pam-script.so was causing this issue? |
Note to self: backport #3725 to 4.2 |
Using `pam_putenv` from `libpam` exposes these env vars to `pam_exec.so` and possibly other built-in PAM modules. Keep setting them via `os.Setenv` too, for `pam_script.so` to use. Updates #3692
Using `pam_putenv` from `libpam` exposes these env vars to `pam_exec.so` and possibly other built-in PAM modules. Keep setting them via `os.Setenv` too, for `pam_script.so` to use. Updates #3692
Using `pam_putenv` from `libpam` exposes these env vars to `pam_exec.so` and possibly other built-in PAM modules. Keep setting them via `os.Setenv` too, for `pam_script.so` to use. Updates #3692
One last touch is to update the docs. |
* Base fork for 4.3 docs * [docs] external email identities and Kube Users (#3628) * Base fork for 4.3 docs * [docs] external email identities and Kube Users (#3628) * Remove trailing whitespace from docs files Some editors will do this automatically on save. This causes a lot of diffs when editing the docs in such an editor. Clean them up once now and we'll try to keep it tidy going forward. * Add make rules for docs whitespace and milv docs-test-whitespace: checks for trailing whitespace in all .md files under docs/. docs-fix-whitespace: removes trailing whitespace in all .md files under docs/. docs-test-links: runs milv in all docs/ subdirectories that have milv.config.yaml. docs-test: runs whitespace and links tests, used during `make docs` * Document the new `--use-local-ssh-agent` flag for tsh The flag is used to bypass the local SSH agent even when it's running. Specifically, this helps with agents that don't support certs. The flag was added in #3721 * Remove pam_script.so docs from SSH PAM page With #3725 we now populate teleport-specific env vars in a way that's accessible to `pam_exec.so`. There's no longer any reason to install pam_script.so separately and duplicate our docs. Updates #3692 * Using the correct --insecure-no-tls flag * Run docs-fix-whitespace make rule in a busybox container * Fixes #3414 Co-authored-by: Andrew Lytvynov <[email protected]> Co-authored-by: Gus Luxton <[email protected]> Co-authored-by: Steven Martin <[email protected]> Co-authored-by: Gus Luxton <[email protected]>
@awly Do you remember what magic you did to make this work with 20.04. Would i need to update 'pam_exec' or my 'teleport_acct` to get these variables? |
@benarent if you have Ubuntu 20.04, these env vars should be available without extra steps. |
I was able to get this working with the help of @Valien . It seems the comment stops it from working. Going to debug more and update the docs. My teleport_acct file (/etc/pam-exec.d):
My teleport file in
|
@benarent did this create the home directory for the user you added? |
The
TELEPORT_ROLES
environment variable is not available on PAM modules on Ubuntu. This prevents correct group assignment.The text was updated successfully, but these errors were encountered: