[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
To Forward or Not To Forward [PATCH for Telnet]
I noticed that telnet (part of Heimdal 0.6.1rc1) didn't honor
[appdefaults]
telnet = {
forward = no
}
in /etc/krb5.conf
With the attached patch (of appl/telnet/telnet/main.c) it does.
/thn
--
---------------------------------------------------------------
Svensk Aktuell Elektronik AB Thomas Nyström
Box 10 Phone: +46 8 35 92 85
S-191 21 Sollentuna Fax: +46 8 35 92 86
Sweden Email: thn@saeab.se
---------------------------------------------------------------
--- main.c.orig Wed Aug 28 23:05:22 2002
+++ main.c Thu Mar 11 22:17:50 2004
@@ -120,20 +120,24 @@
{
krb5_context context;
krb5_error_code ret;
+ krb5_boolean ret_val;
ret = krb5_init_context(&context);
if (ret)
return;
#if defined(AUTHENTICATION) && defined(KRB5) && defined(FORWARD)
- if (krb5_config_get_bool (context, NULL,
- "libdefaults", "forward", NULL)) {
- kerberos5_set_forward(1);
- }
- if (krb5_config_get_bool (context, NULL,
- "libdefaults", "forwardable", NULL)) {
+ krb5_appdefault_boolean(context, NULL,
+ NULL, "forward",
+ 0, &ret_val);
+ if (ret_val)
+ kerberos5_set_forward(1);
+
+ krb5_appdefault_boolean(context, NULL,
+ NULL, "forwardable",
+ 0, &ret_val);
+ if (ret_val)
kerberos5_set_forwardable(1);
- }
#endif
#ifdef ENCRYPTION
if (krb5_config_get_bool (context, NULL,