Add JKH's auth.conf parser to turn on/off Kerberos in userland

This commit is contained in:
Mark Murray 1998-10-09 20:14:48 +00:00
parent 4b12016bab
commit 98eb1c311d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40128
2 changed files with 13 additions and 2 deletions

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)su.1 8.2 (Berkeley) 4/18/94
.\" $Id: su.1,v 1.13 1998/05/25 03:34:52 steve Exp $
.\" $Id: su.1,v 1.14 1998/06/08 05:29:51 jkoshy Exp $
.\"
.\" this is for hilit19's braindeadness: "
.Dd April 18, 1994
@ -161,6 +161,11 @@ By default (unless the prompt is reset by a startup file) the super-user
prompt is set to
.Dq Sy \&#
to remind one of its awesome power.
.Sh FILES
.Bl -tag -width /etc/auth.conf -compact
.It Pa /etc/auth.conf
configure authentication services
.El
.Sh SEE ALSO
.Xr csh 1 ,
.Xr kerberos 1 ,

View File

@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)su.c 8.3 (Berkeley) 4/2/94";
#endif
static const char rcsid[] =
"$Id: su.c,v 1.27 1998/05/26 06:39:08 danny Exp $";
"$Id: su.c,v 1.28 1998/09/21 07:44:25 roberto Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -59,6 +59,7 @@ static const char rcsid[] =
#include <string.h>
#include <syslog.h>
#include <unistd.h>
#include <libutil.h>
#ifdef LOGIN_CAP
#include <login_cap.h>
@ -185,6 +186,11 @@ main(argc, argv)
argv += optind;
#ifdef KERBEROS
k = auth_getval("auth_list");
if (k && !strstr(k, "kerberos"))
use_kerberos = 0;
#endif
errno = 0;
prio = getpriority(PRIO_PROCESS, 0);
if (errno)