diff --git a/usr.bin/login/Makefile b/usr.bin/login/Makefile index 9b9a7edae61..4444828ad94 100644 --- a/usr.bin/login/Makefile +++ b/usr.bin/login/Makefile @@ -1,12 +1,15 @@ # From: @(#)Makefile 8.1 (Berkeley) 7/19/93 -# $Id: Makefile,v 1.12 1995/03/18 17:18:15 nate Exp $ +# $Id: Makefile,v 1.13 1995/05/30 06:31:25 rgrimes Exp $ PROG= login MAN1= login.1 MAN5= login.access.5 SRCS= login.c login_access.c login_fbtab.c -CFLAGS+=-DLOGIN_ACCESS -DSKEY -DLOGALL +#Uncomment to activate login_auth +#Warning: requires src/libexec/login_* auth modules +#LC_AUTH=-DLOGIN_CAP_AUTH +CFLAGS+=-DSKEY -DLOGIN_ACCESS -DLOGALL -DLOGIN_CAP $(LC_AUTH) .if defined(KLOGIN_PARANOID) CFLAGS+=-DKLOGIN_PARANOID @@ -15,7 +18,7 @@ CFLAGS+=-DKLOGIN_PARANOID DPADD= ${LIBUTIL} ${LIBSKEY} ${LIBMD} ${LIBCRYPT} LDADD= -lutil -lskey -lmd -lcrypt -.if exists(${DESTDIR}/usr/lib/libkrb.a) && defined(MAKE_EBONES) +.if exists(${DESTDIR}/usr/lib/libkrb.a) && defined(MAKE_EBONES) && !defined(LC_AUTH) CFLAGS+=-DKERBEROS SRCS+= klogin.c DPADD+= ${LIBKRB} ${LIBDES} diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 4452209289f..ab9e00fe737 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -70,9 +70,27 @@ static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94"; #include #include +#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_