pam_get_data() can get data when using in SSHD

Ian jonhson jonhson.ian at gmail.com
Wed Sep 26 06:00:25 UTC 2007


Thank you very much for your answering.

However, if I have to pass some data from authentication hook of PAM
to other hooks, what should I do? As you have said, sshd's
authentication process has its own address space and PAM's
authentication hook would be called in this space. That means my PAM
module will be called at least two times, one is in SSHD's
authentication process and others will be SSHD's other processes. Is
it still possible to pass data from PAM authentication hook to other
hooks by pam_set_data() and pam_get_data() ? What should I do?


> If you're using OpenSSH then your analysis is more or less correct, except
> that by default, sshd's authentication "thread" is actually a process and
> thus has its own address space.
>
> See https://bugzilla.mindrot.org/show_bug.cgi?id=688 for details.




More information about the Pam-list mailing list