rename user via PAM module?
Wolfgang Draxinger
Wolfgang.Draxinger at physik.uni-muenchen.de
Wed Jun 15 11:04:21 UTC 2011
On Wed, 15 Jun 2011 12:14:12 +0200
Tomas Mraz <tmraz at redhat.com> wrote:
> This perhaps works for you somehow because you're not doing arbitrary
> mapping of user names but just canonicalize them through getpwnam_r().
> But there is really no code in openssh that would adjust the user name
> it obtained from the connection in its internal variables that store
> it and that's later used in other calls to system.
>
> Also see https://bugzilla.mindrot.org/show_bug.cgi?id=1215
Thanks. And the very first answer already explained why it works for
us: Apparently OpenSSH sshd gets its information through getpwnam_r as
well, so it ends up with the very same information as I pass to PAM, so
both are in agreement then.
Good for my usage scenario. Not so good for others though.
Wolfgang
More information about the Pam-list
mailing list