Re: want to authenticate from a passwd file that isn't /etc/passwd?

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

 



On Fri, Apr 11, Anna Langley wrote:

> Hi All,
> 
> I'm trying to set up an application (vsftpd) to authenticate from a
> file in the same format as /etc/passwd (with crypt format passwords),
> but it cannot be /etc/passwd as the 18000 users do not have accounts
> on the system.
> 
> Because this is a move from an existing system, I have no choice about
> the password format.
> 
> Can I do this with any of the standard pam modules?

I don't think that this is possible with standard pam modules, most
of them use glibc functions (getpwnam/getpwnam_r) to get the user
entry, which always looks in /etc/passwd. My pam_unix2 module has
Code to allow the change of passwords in non standard locations
(usefull, if you wish to use passwd to modify NIS passwords for
your users and the source passwd file is not /etc/passwd or if
you wish to use rpasswd/rpasswdd instead of yppasswdd). It should be
possible to adjust this changes for everything else, too. But 
somebody has to implement it.

  Thorsten

-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/        kukuk@xxxxxxx
SuSE Linux AG        Deutschherrnstr. 15-19        D-90429 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B



_______________________________________________

Pam-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/pam-list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux