Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/login Backout login_get_kconf function, because it b...



details:   https://anonhg.NetBSD.org/src/rev/23eae1293e1f
branches:  trunk
changeset: 487042:23eae1293e1f
user:      aidan <aidan%NetBSD.org@localhost>
date:      Fri Jun 02 03:01:22 2000 +0000

description:
Backout login_get_kconf function, because it breaks crypto-intl builds.
Keep the variables for setting default behaviour with krb4 and krb5
compiled in, even though they act like constants, to facilitate adding
another preference mechanism later.

diffstat:

 usr.bin/login/login.c |  41 +++--------------------------------------
 1 files changed, 3 insertions(+), 38 deletions(-)

diffs (83 lines):

diff -r 234965fb2ea3 -r 23eae1293e1f usr.bin/login/login.c
--- a/usr.bin/login/login.c     Fri Jun 02 01:48:50 2000 +0000
+++ b/usr.bin/login/login.c     Fri Jun 02 03:01:22 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: login.c,v 1.57 2000/05/30 06:56:17 aidan Exp $       */
+/*     $NetBSD: login.c,v 1.58 2000/06/02 03:01:22 aidan Exp $       */
 
 /*-
  * Copyright (c) 1980, 1987, 1988, 1991, 1993, 1994
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "@(#)login.c    8.4 (Berkeley) 4/2/94";
 #endif
-__RCSID("$NetBSD: login.c,v 1.57 2000/05/30 06:56:17 aidan Exp $");
+__RCSID("$NetBSD: login.c,v 1.58 2000/06/02 03:01:22 aidan Exp $");
 #endif /* not lint */
 
 /*
@@ -94,17 +94,6 @@
 int login_krb4_get_tickets = 0;
 int login_krb5_forwardable_tgt = 0;
 int login_krb5_retain_ccache = 0;
-
-static struct login_confs {
-       char *flagname;
-       int *flag;
-} login_conf_set[] = {
-       { "krb5_get_tickets", &login_krb5_get_tickets },
-       { "krb4_get_tickets", &login_krb4_get_tickets },
-       { "forwardable", &login_krb5_forwardable_tgt },
-       { "retain_ccache", &login_krb5_retain_ccache },
-       { 0, 0 }
-};
 #endif
 
 void    badlogin __P((char *));
@@ -123,7 +112,6 @@
 void    kdestroy __P((void));
 #endif
 #ifdef KERBEROS5
-void    login_get_kconf __P((krb5_context));
 int     k5login __P((struct passwd *, char *, char *, char *));
 void    k5destroy __P((void));
 int     k5_read_creds __P((char*));
@@ -303,8 +291,7 @@
                syslog(LOG_NOTICE, "%s when initializing Kerberos context",
                    error_message(kerror));
                login_krb5_get_tickets = 0;
-       } else
-               login_get_kconf(kcontext);
+       }
 #endif KERBEROS5
 
        for (cnt = 0;; ask = 1) {
@@ -753,28 +740,6 @@
        err(1, "%s", pwd->pw_shell);
 }
 
-#if defined(KERBEROS5)
-/* get flags (listed above) from the profile */
-void
-login_get_kconf(k)
-       krb5_context k;
-{
-       int i;
-       krb5_data realm;
-
-       realm.length = 0;
-       if (krb5_get_default_realm(k, &realm.data) == 0)
-               realm.length = strlen(realm.data);
-
-       for (i = 0; login_conf_set[i].flagname; i++) {
-               krb5_appdefault_boolean(k, "login", &realm,
-                                       login_conf_set[i].flagname,
-                                       *login_conf_set[i].flag,
-                                       login_conf_set[i].flag);
-       }
-}
-#endif
-
 #if defined(KERBEROS) || defined(KERBEROS5)
 #define        NBUFSIZ         (MAXLOGNAME + 1 + 5)    /* .root suffix */
 #else



Home | Main Index | Thread Index | Old Index