-
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
use_pam_auth doesn't work with interactive password input #29628
Comments
I'm confused as to what you expect to happen by enabling the use of the PAM |
i am trying to force a password entry (yes i know the cool feature of teleport is not needing passwords) but in our particular case, entering the password of the local user is important. |
How is your PAM stack configured? My guess is that it's returning some kind of error when Teleport tries to call it - you should turn your Teleport log level up to |
its the DEBUG level from teleport. auth.log are only my pam is currently simply a sshd-pam copy |
I experimented with the PAM auth stuff, and Teleport doesn't appear to properly support PAM interactive challenges. Teleport seems to hook up stdin directly to the PAM challenge, and does not quite pass the input correctly. I tried with pam_unix.so (password auth) and a PAM auth module that requires the user to input an OTP code. In both cases, the module would fail. Other auth modules that do not require interactive messages did work correctly when teleport's PAM auth was enabled. For example, I was able to individually get the following to work because they don't require any user interaction:
I am curious why you need a user password in addition to teleport credentials. It doesn't sound like a typical use case. Extra background info on why you have this requirement might help find an alternate approach to satisfy the requirement. Is there a specific audit requirement you are trying to satisfy? |
thank you for testing it. in our particular case, we supply our hardware (our pc) and the customer runs the teleport server (which is connected to ours). |
Fixed by #49487 |
Expected behavior:
use_pam_auth: true in the teleport.yaml activates the password input
Current behavior:
nothing appears
when you press enter an error occurs
Bug details:
/etc/teleport.yaml
activate pam and user_pam_auth
The text was updated successfully, but these errors were encountered: