From 8e32ad3bde4ce314f4808e38aedbe705e4be453e Mon Sep 17 00:00:00 2001 From: John Polstra Date: Wed, 11 Nov 1998 02:16:01 +0000 Subject: [PATCH] Remove support for LOGIN_CAP_AUTH. It was never enabled, it was not complete, and it hasn't been touched for 18 months. All the ifdefs obfuscate the code. I discussed the LOGIN_CAP_AUTH support with its author and he agreed that it is a dead end. I am bringing PAM into the tree within the next two weeks. It is much more flexible than LOGIN_CAP_AUTH, and will serve as a superior replacement for it. --- usr.bin/login/Makefile | 9 +-- usr.bin/login/login.c | 127 +---------------------------------------- 2 files changed, 5 insertions(+), 131 deletions(-) diff --git a/usr.bin/login/Makefile b/usr.bin/login/Makefile index 71fa73e5f569..ce15d16f505a 100644 --- a/usr.bin/login/Makefile +++ b/usr.bin/login/Makefile @@ -1,15 +1,12 @@ # From: @(#)Makefile 8.1 (Berkeley) 7/19/93 -# $Id: Makefile,v 1.20 1998/08/06 21:37:04 markm Exp $ +# $Id: Makefile,v 1.21 1998/09/19 22:42:04 obrien Exp $ PROG= login MAN1= login.1 MAN5= login.access.5 SRCS= login.c login_access.c login_fbtab.c -#Uncomment to activate login_auth -#Warning: requires src/libexec/login_* auth modules -#LC_AUTH=-DLOGIN_CAP_AUTH -CFLAGS+=-Wall -DSKEY -DLOGIN_ACCESS -DLOGALL -DLOGIN_CAP $(LC_AUTH) +CFLAGS+=-Wall -DSKEY -DLOGIN_ACCESS -DLOGALL -DLOGIN_CAP .if defined(KLOGIN_PARANOID) CFLAGS+=-DKLOGIN_PARANOID @@ -18,7 +15,7 @@ CFLAGS+=-DKLOGIN_PARANOID DPADD= ${LIBUTIL} ${LIBSKEY} ${LIBMD} ${LIBCRYPT} LDADD= -lutil -lskey -lmd -lcrypt -.if exists(${DESTDIR}${LIBDIR}/libkrb.a) && defined(MAKE_KERBEROS4) && !defined(LC_AUTH) +.if exists(${DESTDIR}${LIBDIR}/libkrb.a) && defined(MAKE_KERBEROS4) CFLAGS+=-DKERBEROS SRCS+= klogin.c DPADD+= ${LIBKRB} ${LIBDES} diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 6cfaa95a4e87..6d430038de43 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -42,7 +42,7 @@ static char copyright[] = static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94"; #endif static const char rcsid[] = - "$Id: login.c,v 1.39 1998/10/09 06:36:22 markm Exp $"; + "$Id: login.c,v 1.40 1998/11/11 01:53:12 jdp Exp $"; #endif /* not lint */ /* @@ -78,23 +78,8 @@ static const char rcsid[] = #ifdef LOGIN_CAP #include -#else /* Undef AUTH as well */ -#undef LOGIN_CAP_AUTH #endif -/* - * If LOGIN_CAP_AUTH is activated: - * kerberose & skey logins are runtime selected via login - * login_getstyle() and authentication types for login classes - * The actual login itself is handled via /usr/libexec/login_