(krb4_authenticate): obtain the `local' address when doing NAT. also
turn on passive mode. From <thn@stacken.kth.se> git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7429 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -76,6 +76,14 @@ krb4_authenticate (kx_context *kc, int s)
|
|||||||
krb4_kx_context *c = (krb4_kx_context *)kc->data;
|
krb4_kx_context *c = (krb4_kx_context *)kc->data;
|
||||||
const char *host = kc->host;
|
const char *host = kc->host;
|
||||||
|
|
||||||
|
if (krb_get_config_bool("nat_in_use")) {
|
||||||
|
struct in_addr natAddr;
|
||||||
|
|
||||||
|
if (krb_get_our_ip_for_realm(krb_realmofhost(kc->host),
|
||||||
|
&natAddr) == KSUCCESS)
|
||||||
|
kc->thisaddr.sin_addr = natAddr;
|
||||||
|
}
|
||||||
|
|
||||||
status = krb_sendauth (KOPT_DO_MUTUAL, s, &text, "rcmd",
|
status = krb_sendauth (KOPT_DO_MUTUAL, s, &text, "rcmd",
|
||||||
(char *)host, krb_realmofhost (host),
|
(char *)host, krb_realmofhost (host),
|
||||||
getpid(), &msg, &cred, c->schedule,
|
getpid(), &msg, &cred, c->schedule,
|
||||||
|
Reference in New Issue
Block a user