Re: rename user via PAM module?

Wolfgang Draxinger <[email protected]>
Newsgroups gmane.linux.pam
Organization LMU München - Fakultät f ür Physik
Message-ID <20110615130421.4bf4f76a@gar-ws-erda02.garching.physik.uni-muenchen.de>
On Wed, 15 Jun 2011 12:14:12 +0200
Tomas Mraz <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.