[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Alter user information in PAM auth module



On Tue, Jul 01, 2003 at 09:31:54AM -0400, Tim Rhodes wrote:
> Can a PAM auth module, alter the UID/GID after authenticating the user?
> The goal is to map valid users (via LDAP authentication) to a single
> guest user credentials on the service.  It looks like namservice switch
> module could, but I'ld like to be able to accomplish this in a PAM
> module that can be applied to only the samba service.  Thanks...

The only way to do this with PAM would be if your PAM module, upon
successful authentication, made changes to the configured NSS backend to
address the user id mapping.  However, this would tend to be very
fragile, and if your target application is Samba, you're probably better
off using Samba's built-in capabilities for user mapping (i.e., 'force
user = <newuser>').

-- 
Steve Langasek
postmodern programmer

Attachment: pgp00000.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []