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 /openbsd-compat/port-aix.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 'openbsd-compat/port-aix.c')
-rw-r--r-- | openbsd-compat/port-aix.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/openbsd-compat/port-aix.c b/openbsd-compat/port-aix.c index 4c96a3171..cddc0907f 100644 --- a/openbsd-compat/port-aix.c +++ b/openbsd-compat/port-aix.c | |||
@@ -24,12 +24,17 @@ | |||
24 | * | 24 | * |
25 | */ | 25 | */ |
26 | #include "includes.h" | 26 | #include "includes.h" |
27 | #include "ssh.h" | ||
28 | #include "log.h" | ||
29 | #include "servconf.h" | ||
27 | 30 | ||
28 | #ifdef _AIX | 31 | #ifdef _AIX |
29 | 32 | ||
30 | #include <uinfo.h> | 33 | #include <uinfo.h> |
31 | #include <../xmalloc.h> | 34 | #include <../xmalloc.h> |
32 | 35 | ||
36 | extern ServerOptions options; | ||
37 | |||
33 | /* | 38 | /* |
34 | * AIX has a "usrinfo" area where logname and other stuff is stored - | 39 | * AIX has a "usrinfo" area where logname and other stuff is stored - |
35 | * a few applications actually use this and die if it's not set | 40 | * a few applications actually use this and die if it's not set |
@@ -52,5 +57,16 @@ aix_usrinfo(struct passwd *pw) | |||
52 | xfree(cp); | 57 | xfree(cp); |
53 | } | 58 | } |
54 | 59 | ||
60 | # ifdef CUSTOM_FAILED_LOGIN | ||
61 | /* | ||
62 | * record_failed_login: generic "login failed" interface function | ||
63 | */ | ||
64 | void | ||
65 | record_failed_login(const char *user, const char *ttyname) | ||
66 | { | ||
67 | loginfailed(user, | ||
68 | get_canonical_hostname(options.verify_reverse_mapping), ttyname); | ||
69 | } | ||
70 | # endif /* CUSTOM_FAILED_LOGIN */ | ||
55 | #endif /* _AIX */ | 71 | #endif /* _AIX */ |
56 | 72 | ||