diff options
Diffstat (limited to 'auth1.c')
-rw-r--r-- | auth1.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -266,8 +266,8 @@ do_authloop(Authctxt *authctxt) | |||
266 | #elif defined(HAVE_OSF_SIA) | 266 | #elif defined(HAVE_OSF_SIA) |
267 | /* Do SIA auth with password */ | 267 | /* Do SIA auth with password */ |
268 | if (sia_validate_user(NULL, saved_argc, saved_argv, | 268 | if (sia_validate_user(NULL, saved_argc, saved_argv, |
269 | get_canonical_hostname(), pw->pw_name, NULL, 0, | 269 | get_canonical_hostname(options.reverse_mapping_check), |
270 | NULL, password) == SIASUCCESS) { | 270 | pw->pw_name, NULL, 0, NULL, password) == SIASUCCESS) { |
271 | authenticated = 1; | 271 | authenticated = 1; |
272 | } | 272 | } |
273 | #else /* !USE_PAM && !HAVE_OSF_SIA */ | 273 | #else /* !USE_PAM && !HAVE_OSF_SIA */ |
@@ -347,7 +347,9 @@ do_authloop(Authctxt *authctxt) | |||
347 | 347 | ||
348 | if (authctxt->failures++ > AUTH_FAIL_MAX) { | 348 | if (authctxt->failures++ > AUTH_FAIL_MAX) { |
349 | #ifdef WITH_AIXAUTHENTICATE | 349 | #ifdef WITH_AIXAUTHENTICATE |
350 | loginfailed(user,get_canonical_hostname(),"ssh"); | 350 | loginfailed(user, |
351 | get_canonical_hostname(options.reverse_mapping_check), | ||
352 | "ssh"); | ||
351 | #endif /* WITH_AIXAUTHENTICATE */ | 353 | #endif /* WITH_AIXAUTHENTICATE */ |
352 | packet_disconnect(AUTH_FAIL_MSG, authctxt->user); | 354 | packet_disconnect(AUTH_FAIL_MSG, authctxt->user); |
353 | } | 355 | } |
@@ -433,7 +435,9 @@ do_authentication() | |||
433 | 435 | ||
434 | #ifdef WITH_AIXAUTHENTICATE | 436 | #ifdef WITH_AIXAUTHENTICATE |
435 | /* We don't have a pty yet, so just label the line as "ssh" */ | 437 | /* We don't have a pty yet, so just label the line as "ssh" */ |
436 | if (loginsuccess(authctxt->user,get_canonical_hostname(),"ssh",&aixloginmsg) < 0) | 438 | if (loginsuccess(authctxt->user, |
439 | get_canonical_hostname(options.reverse_mapping_check), | ||
440 | "ssh", &aixloginmsg) < 0) | ||
437 | aixloginmsg = NULL; | 441 | aixloginmsg = NULL; |
438 | #endif /* WITH_AIXAUTHENTICATE */ | 442 | #endif /* WITH_AIXAUTHENTICATE */ |
439 | 443 | ||