diff options
author | Darren Tucker <dtucker@zip.com.au> | 2003-05-02 23:42:25 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2003-05-02 23:42:25 +1000 |
commit | 97363a8b24601bad631f6f187c487a166f7eb959 (patch) | |
tree | 22ddbb3b4756f7579003e3f18b2a2e690cf5d11d /auth.c | |
parent | 3c01654deb235191d798a5254561624872a7f010 (diff) |
- (dtucker) Move handling of bad password authentications into a platform
specific record_failed_login() function (affects AIX & Unicos).
Diffstat (limited to 'auth.c')
-rw-r--r-- | auth.c | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -268,13 +268,10 @@ auth_log(Authctxt *authctxt, int authenticated, char *method, char *info) get_remote_port(), info); -#ifdef WITH_AIXAUTHENTICATE +#ifdef CUSTOM_FAILED_LOGIN if (authenticated == 0 && strcmp(method, "password") == 0) - loginfailed(authctxt->user, - get_canonical_hostname(options.verify_reverse_mapping), - "ssh"); -#endif /* WITH_AIXAUTHENTICATE */ - + record_failed_login(authctxt->user, "ssh"); +#endif } /* @@ -496,10 +493,8 @@ getpwnamallow(const char *user) if (pw == NULL) { logit("Illegal user %.100s from %.100s", user, get_remote_ipaddr()); -#ifdef WITH_AIXAUTHENTICATE - loginfailed(user, - get_canonical_hostname(options.verify_reverse_mapping), - "ssh"); +#ifdef CUSTOM_FAILED_LOGIN + record_failed_login(user, "ssh"); #endif return (NULL); } |