aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Boardman <amb@mit.edu>2006-09-11 04:02:38 +0000
committerAndrew Boardman <amb@mit.edu>2006-09-11 04:02:38 +0000
commite00c93ef70b6518a7a4eae13bbd73aa42aaa7b40 (patch)
tree915f75547cdbf48936dbfaf3cca9a7ad45db1ecf
parent95b1e6c3faa49d35b571720bfc6015bdcd64a46c (diff)
downloadkrb5-e00c93ef70b6518a7a4eae13bbd73aa42aaa7b40.zip
krb5-e00c93ef70b6518a7a4eae13bbd73aa42aaa7b40.tar.gz
krb5-e00c93ef70b6518a7a4eae13bbd73aa42aaa7b40.tar.bz2
Comment out some previously-missed debugging output
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/referrals@18580 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--ptest.c2
-rw-r--r--src/lib/krb5/os/hst_realm.c14
2 files changed, 13 insertions, 3 deletions
diff --git a/ptest.c b/ptest.c
index 9295cc0..092af5c 100644
--- a/ptest.c
+++ b/ptest.c
@@ -218,7 +218,7 @@ static void do_v5_kvno (int count, char *names[],
errors++;
continue;
}
- printf("princ returned was %s\n",princ);
+ printf("ptest: princ returned was %s\n",princ);
in_creds.keyblock.enctype = etype;
ret = krb5_get_credentials(context, 0, ccache, &in_creds, &out_creds);
diff --git a/src/lib/krb5/os/hst_realm.c b/src/lib/krb5/os/hst_realm.c
index 26ef440..9d6dfd7 100644
--- a/src/lib/krb5/os/hst_realm.c
+++ b/src/lib/krb5/os/hst_realm.c
@@ -200,7 +200,9 @@ krb5_get_host_realm(krb5_context context, const char *host, char ***realmsp)
krb5_error_code retval;
char local_host[MAXDNAME+1];
+#ifdef DEBUG_REFERRALS
printf("get_host_realm(host:%s) called\n",host);
+#endif
krb5_clean_hostname(context, host, local_host, sizeof local_host);
@@ -217,11 +219,15 @@ krb5_get_host_realm(krb5_context context, const char *host, char ***realmsp)
*/
cp = local_host;
+#ifdef DEBUG_REFERRALS
printf(" local_host: %s\n",local_host);
+#endif
realm = (char *)NULL;
temp_realm = 0;
while (cp) {
+#ifdef DEBUG_REFERRALS
printf(" trying to look up %s in the domain_realm map\n",cp);
+#endif
retval = profile_get_string(context->profile, "domain_realm", cp,
0, (char *)NULL, &temp_realm);
if (retval)
@@ -236,9 +242,13 @@ krb5_get_host_realm(krb5_context context, const char *host, char ***realmsp)
cp = strchr(cp, '.');
}
}
+#ifdef DEBUG_REFERRALS
printf(" done searching the domain_realm map\n");
+#endif
if (temp_realm) {
+#ifdef DEBUG_REFERRALS
printf(" temp_realm is %s\n",temp_realm);
+#endif
realm = malloc(strlen(temp_realm) + 1);
if (!realm) {
profile_release_string(temp_realm);
@@ -330,7 +340,7 @@ krb5_get_fallback_host_realm(krb5_context context, krb5_data *hdata, char ***rea
memcpy(host, hdata->data, hdata->length);
host[hdata->length]=0;
-#ifdef DEBUG_REFERRALS
+#ifdef DEBUG_REFERRALS
printf("get_fallback_host_realm(host >%s<) called\n",host);
#endif
@@ -339,7 +349,7 @@ krb5_get_fallback_host_realm(krb5_context context, krb5_data *hdata, char ***rea
/* Scan hostname for DNS realm, and save as last-ditch realm
assumption. */
cp = local_host;
-#ifdef DEBUG_REFERRALS
+#ifdef DEBUG_REFERRALS
printf(" local_host: %s\n",local_host);
#endif
realm = default_realm = (char *)NULL;