NetBSD/libexec/ftpd
lukem 4f3847e772 Reorganize USE_PAM support so that the reply(331,) from USER is
performed by the pam_conv (PAM conversation) callback, which then
getline()s the PASS reply internally.  This involves calling
auth_pam() from user() and caching the result to use later in pass().
This allows the PAM modules to present a different password prompt
dialog if necesary.  For example:
  Name (localhost:lukem):
  331 User lukem accepted, provide password [ otp-md4 89 xxxx12345 ].
versus
  Name (localhost:lukem): root
  331 User root accepted, provide password.

This is independent of (and effectively exclusive to) USE_SKEY support.

Previously ftpd with USE_SKEY=yes would provide the skey prompt
if the user had an skey configured, even if /etc/pam.d/ftpd didn't
have pam_skey in use.
I.e., ftpd shouldn't need special support for custom password prompts
(such as skey) if PAM is in use.
2008-03-27 08:12:09 +00:00
..
Makefile Reorganize USE_PAM support so that the reply(331,) from USER is 2008-03-27 08:12:09 +00:00
cmds.c
conf.c Switch from lockf() to (more portable) fcntl() locking 2008-03-09 20:11:43 +00:00
extern.h Rename HAVE_SOCKADDR_SA_LEN to HAVE_STRUCT_SOCKADDR_SA_LEN. 2007-07-22 05:06:45 +00:00
ftpcmd.y Rename HAVE_SOCKADDR_SA_LEN to HAVE_STRUCT_SOCKADDR_SA_LEN. 2007-07-22 05:06:45 +00:00
ftpd.8 Explicitly note the unsupported requests from RFC 2228. 2008-01-30 02:16:35 +00:00
ftpd.c Reorganize USE_PAM support so that the reply(331,) from USER is 2008-03-27 08:12:09 +00:00
ftpd.conf.5 filetypes -> file types. 2007-12-02 19:15:07 +00:00
ftpusers.5
logutmp.c allow compilation without SUPPORT_UTMP 2006-12-04 21:13:22 +00:00
logwtmp.c
pathnames.h
popen.c
version.h Reorganize USE_PAM support so that the reply(331,) from USER is 2008-03-27 08:12:09 +00:00