summaryrefslogtreecommitdiffstats
path: root/src/kdc/realm_data.h
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-01-11 13:26:37 -0500
committerGreg Hudson <ghudson@mit.edu>2013-01-11 13:36:20 -0500
commitc53ea7bef444d7c151c46224b7a0600b9539496f (patch)
tree3656a64e4b36945f174d145e9f2cbac84ca11d44 /src/kdc/realm_data.h
parent59ff1102942b564faa257c9f283efeb6fea63b8f (diff)
downloadkrb5-c53ea7bef444d7c151c46224b7a0600b9539496f.tar.gz
krb5-c53ea7bef444d7c151c46224b7a0600b9539496f.tar.xz
krb5-c53ea7bef444d7c151c46224b7a0600b9539496f.zip
Simplify KDC host referral code
Remove some unnecessary optimizations to reduce code complexity. Get rid of krb5_match_config_pattern in favor of a simpler helper function in do_tgs_req_c. Get rid of KRB5_CONF_ASTERISK and just use "*" instead. Use a helper function to combine [kdcdefaults] and realm subsection values of variables, and don't bother adding leading and trailing spaces. Consistently use the names "hostbased" and "no_referral" to refer to variable values (with a "realm_" prefix for structures which currently use it).
Diffstat (limited to 'src/kdc/realm_data.h')
-rw-r--r--src/kdc/realm_data.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/kdc/realm_data.h b/src/kdc/realm_data.h
index 0387c28ae6..1593c442e5 100644
--- a/src/kdc/realm_data.h
+++ b/src/kdc/realm_data.h
@@ -45,11 +45,8 @@ typedef struct __kdc_realm_data {
krb5_context realm_context; /* Context to be used for realm */
krb5_keytab realm_keytab; /* keytab to be used for this realm */
char * realm_profile; /* Profile file for this realm */
- char * realm_host_based_services; /* do referral processing for these services
- * If '*' - allow all referrals */
- char * realm_no_host_referral; /* no referral for these services.
- * If '*' - disallow all referrals and
- * ignore realm_host_based_services */
+ char * realm_hostbased; /* referral services for NT-UNKNOWN */
+ char * realm_no_referral; /* non-referral services */
/*
* Database per-realm data.
*/