Add PAM support to SRA authentication. Cribbed mostly from ftpd. This

doesn't solve the problem of root being allowed to log in, but that sort
of thing is something PAM should be doing anyway.
This commit is contained in:
Nick Sayer 2001-05-07 20:38:39 +00:00
parent 3b26be6ae1
commit 76235b992b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76337
3 changed files with 6 additions and 2 deletions

View File

@ -86,6 +86,10 @@ sshd session required pam_permit.so
# "csshd" is for challenge-based authentication with sshd (TIS auth, etc.)
csshd auth required pam_skey.so
# SRA telnet. Non-SRA telnet uses 'login'.
telnetd auth required pam_unix.so try_first_pass
telnetd account required pam_unix.so
# Don't break startx
xserver auth required pam_permit.so

View File

@ -15,7 +15,7 @@ SRCS= global.c slc.c state.c sys_term.c telnetd.c \
DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET} ${LIBCRYPTO} ${LIBMP} \
${LIBCRYPT}
LDADD= -lutil -ltermcap ${LIBTELNET} -lcrypto -lcrypt -lmp
LDADD= -lutil -ltermcap ${LIBTELNET} -lcrypto -lcrypt -lmp -lpam
.include <bsd.prog.mk>

View File

@ -12,7 +12,7 @@ SRCS= authenc.c commands.c main.c network.c ring.c sys_bsd.c \
DPADD= ${LIBTERMCAP} ${LIBTELNET} ${LIBCRYPTO} ${LIBCRYPT} ${LIBMP}
DPADD+= ${LIBIPSEC}
LDADD= -ltermcap ${LIBTELNET} -lcrypto -lcrypt -lmp
LDADD+= -lipsec
LDADD+= -lipsec -lpam
.include <bsd.prog.mk>