version 1.11, 2006/08/03 03:34:41 |
version 1.12, 2008/07/17 08:51:07 |
|
|
debug2("userauth_hostbased: chost %s resolvedname %s ipaddr %s", |
debug2("userauth_hostbased: chost %s resolvedname %s ipaddr %s", |
chost, resolvedname, ipaddr); |
chost, resolvedname, ipaddr); |
|
|
|
if (((len = strlen(chost)) > 0) && chost[len - 1] == '.') { |
|
debug2("stripping trailing dot from chost %s", chost); |
|
chost[len - 1] = '\0'; |
|
} |
|
|
if (options.hostbased_uses_name_from_packet_only) { |
if (options.hostbased_uses_name_from_packet_only) { |
if (auth_rhosts2(pw, cuser, chost, chost) == 0) |
if (auth_rhosts2(pw, cuser, chost, chost) == 0) |
return 0; |
return 0; |
lookup = chost; |
lookup = chost; |
} else { |
} else { |
if (((len = strlen(chost)) > 0) && chost[len - 1] == '.') { |
|
debug2("stripping trailing dot from chost %s", chost); |
|
chost[len - 1] = '\0'; |
|
} |
|
if (strcasecmp(resolvedname, chost) != 0) |
if (strcasecmp(resolvedname, chost) != 0) |
logit("userauth_hostbased mismatch: " |
logit("userauth_hostbased mismatch: " |
"client sends %s, but we resolve %s to %s", |
"client sends %s, but we resolve %s to %s", |