]> granicus.if.org Git - sudo/commitdiff
ignore kerberos if we can't get the local realm
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 7 Apr 1998 02:35:44 +0000 (02:35 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 7 Apr 1998 02:35:44 +0000 (02:35 +0000)
check.c

diff --git a/check.c b/check.c
index c283cd23acb226137394148b99fab8df4583de08..bf0d708cfcc498c8e682b7d8cffd62d2e613a6f6 100644 (file)
--- a/check.c
+++ b/check.c
@@ -678,9 +678,9 @@ static int sudo_krb_validate_user(pw_ent, pass)
     char tkfile[sizeof(_PATH_SUDO_TIMEDIR) + 4 + MAX_UID_T_LEN];
     int k_errno;
 
-    /* Get the local realm */
+    /* Get the local realm, or retrun failure (no krb.conf) */
     if (krb_get_lrealm(realm, 1) != KSUCCESS)
-       (void) fprintf(stderr, "Warning: Unable to get local kerberos realm\n");
+       return(-1);
 
     /*
      * Set the ticket file to be in sudo sudo timedir so we don't