summaryrefslogtreecommitdiffstats
path: root/usr.bin/su
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>1998-10-09 20:14:48 +0000
committermarkm <markm@FreeBSD.org>1998-10-09 20:14:48 +0000
commitbad4fa82c97b6efc5f41c6c83bb9ff6785045983 (patch)
tree64d14ea69eccf6983b9850cd2cfee6885655ce4e /usr.bin/su
parenta3544f2edb31acfc1c2fec1e96e88f423e51a57f (diff)
downloadFreeBSD-src-bad4fa82c97b6efc5f41c6c83bb9ff6785045983.zip
FreeBSD-src-bad4fa82c97b6efc5f41c6c83bb9ff6785045983.tar.gz
Add JKH's auth.conf parser to turn on/off Kerberos in userland
Diffstat (limited to 'usr.bin/su')
-rw-r--r--usr.bin/su/su.17
-rw-r--r--usr.bin/su/su.c8
2 files changed, 13 insertions, 2 deletions
diff --git a/usr.bin/su/su.1 b/usr.bin/su/su.1
index a5e25e6..78ce5f1 100644
--- a/usr.bin/su/su.1
+++ b/usr.bin/su/su.1
@@ -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 ,
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c
index f2196a0..9fdc9e7 100644
--- a/usr.bin/su/su.c
+++ b/usr.bin/su/su.c
@@ -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)
OpenPOWER on IntegriCloud