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 4c96a317..cddc0907 100644 --- a/openbsd-compat/port-aix.c +++ b/openbsd-compat/port-aix.c @@ -24,12 +24,17 @@ * */ #include "includes.h" +#include "ssh.h" +#include "log.h" +#include "servconf.h" #ifdef _AIX #include <uinfo.h> #include <../xmalloc.h> +extern ServerOptions options; + /* * AIX has a "usrinfo" area where logname and other stuff is stored - * a few applications actually use this and die if it's not set @@ -52,5 +57,16 @@ aix_usrinfo(struct passwd *pw) xfree(cp); } +# ifdef CUSTOM_FAILED_LOGIN +/* + * record_failed_login: generic "login failed" interface function + */ +void +record_failed_login(const char *user, const char *ttyname) +{ + loginfailed(user, + get_canonical_hostname(options.verify_reverse_mapping), ttyname); +} +# endif /* CUSTOM_FAILED_LOGIN */ #endif /* _AIX */ |