do not use krb_get_our_ip_for_realm unless it exists
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7458 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -253,6 +253,7 @@ krb4_auth(void *app_data, char *host)
|
||||
return AUTH_CONTINUE;
|
||||
}
|
||||
|
||||
#ifdef HAVE_KRB_GET_OUR_IP_FOR_REALM
|
||||
if (krb_get_config_bool("nat_in_use")) {
|
||||
struct in_addr natAddr;
|
||||
|
||||
@@ -277,6 +278,7 @@ krb4_auth(void *app_data, char *host)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
printf("Local address is %s\n", inet_ntoa(localaddr->sin_addr));
|
||||
printf("Remote address is %s\n", inet_ntoa(remoteaddr->sin_addr));
|
||||
|
@@ -76,6 +76,7 @@ krb4_authenticate (kx_context *kc, int s)
|
||||
krb4_kx_context *c = (krb4_kx_context *)kc->data;
|
||||
const char *host = kc->host;
|
||||
|
||||
#ifdef HAVE_KRB_GET_OUR_IP_FOR_REALM
|
||||
if (krb_get_config_bool("nat_in_use")) {
|
||||
struct in_addr natAddr;
|
||||
|
||||
@@ -83,6 +84,7 @@ krb4_authenticate (kx_context *kc, int s)
|
||||
&natAddr) == KSUCCESS)
|
||||
kc->thisaddr.sin_addr = natAddr;
|
||||
}
|
||||
#endif
|
||||
|
||||
status = krb_sendauth (KOPT_DO_MUTUAL, s, &text, "rcmd",
|
||||
(char *)host, krb_realmofhost (host),
|
||||
|
Reference in New Issue
Block a user