From: Todd C. Miller Date: Tue, 7 Apr 1998 02:35:44 +0000 (+0000) Subject: ignore kerberos if we can't get the local realm X-Git-Tag: SUDO_1_5_6~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac5c39884f6a82a20b3b9322d7c5f7d6f890f3de;p=sudo ignore kerberos if we can't get the local realm --- diff --git a/check.c b/check.c index c283cd23a..bf0d708cf 100644 --- 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