Make it possible to have a commented-out local realm in krb.conf to allow
authortholo <tholo@openbsd.org>
Fri, 3 May 1996 18:18:56 +0000 (18:18 +0000)
committertholo <tholo@openbsd.org>
Fri, 3 May 1996 18:18:56 +0000 (18:18 +0000)
using Kerberos for remote authentication but not for local authentication

kerberosIV/krb/get_krbrlm.c

index d6892a2..36e8549 100644 (file)
@@ -67,5 +67,5 @@ krb_get_lrealm(r, n)
         return(KFAILURE);
     }
     (void) fclose(cnffile);
-    return(KSUCCESS);
+    return(*r == '#' ? KFAILURE : KSUCCESS);
 }