4f3847e772
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.
54 lines
1.1 KiB
Makefile
54 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.58 2008/03/27 08:12:09 lukem Exp $
|
|
# @(#)Makefile 8.2 (Berkeley) 4/4/94
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
PROG= ftpd
|
|
SRCS= cmds.c conf.c ftpd.c ftpcmd.y logutmp.c logwtmp.c popen.c
|
|
CPPFLAGS+=-I${.CURDIR} -DSUPPORT_UTMP -DSUPPORT_UTMPX -DLOGIN_CAP
|
|
DPADD+= ${LIBCRYPT} ${LIBUTIL}
|
|
LDADD+= -lcrypt -lutil
|
|
MAN= ftpd.conf.5 ftpusers.5 ftpd.8
|
|
MLINKS= ftpusers.5 ftpchroot.5
|
|
|
|
# for `internal' ls
|
|
SRCS+= ls.c cmp.c print.c util.c
|
|
.PATH: ${NETBSDSRCDIR}/bin/ls
|
|
|
|
.if (${USE_INET6} != "no")
|
|
CPPFLAGS+=-DINET6
|
|
.endif
|
|
|
|
WARNS=2
|
|
|
|
.if (${USE_PAM} != "no")
|
|
CPPFLAGS+=-DUSE_PAM
|
|
DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
|
|
LDADD+= -lpam ${PAM_STATIC_LDADD}
|
|
.else # USE_PAM == no
|
|
.if (${USE_SKEY} != "no")
|
|
CPPFLAGS+=-DSKEY
|
|
DPADD+= ${LIBSKEY}
|
|
LDADD+= -lskey
|
|
.endif
|
|
.endif # USE_PAM == no
|
|
|
|
ftpd.o ftpcmd.o: version.h
|
|
|
|
#.if (${USE_KERBEROS} != "no")
|
|
#
|
|
#.PATH: ${NETBSDSRCDIR}/usr.bin/login
|
|
#
|
|
#SRCS+= k5login.c
|
|
#CPPFLAGS+=-DKERBEROS5
|
|
#CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
|
|
#DPADD+= ${LIBKRB5} ${LIBASN1}
|
|
#LDADD+= -lkrb5 -lasn1
|
|
#
|
|
#DPADD+= ${LIBCRYPTO} ${{LIBCRYPT} ${LIBROKEN} ${LIBCOM_ERR}
|
|
#LDADD+= -lcrypto -lcrypt -lroken -lcom_err
|
|
#
|
|
#.endif
|
|
|
|
.include <bsd.prog.mk>
|