diff options
author | Tim Rice <tim@multitalents.net> | 2002-09-25 17:38:46 -0700 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2002-09-25 17:38:46 -0700 |
commit | 81ed518b9b888502cc57b23c02c47634ca508748 (patch) | |
tree | c5e3572dcc8dabd07784d1686d67e560e1685a6f /auth2.c | |
parent | 164725f40ecda144de706c94778e47dc86ae9257 (diff) | |
download | openssh-git-81ed518b9b888502cc57b23c02c47634ca508748.tar.gz |
Cray fixes (bug 367) based on patch from Wendy Palm @ cray.
This does not include the deattack.c fixes.
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -216,6 +216,13 @@ userauth_finish(Authctxt *authctxt, int authenticated, char *method) authenticated = 0; #endif /* USE_PAM */ +#ifdef _UNICOS + if (authenticated && cray_access_denied(authctxt->user)) { + authenticated = 0; + fatal("Access denied for user %s.",authctxt->user); + } +#endif /* _UNICOS */ + /* Log before sending the reply */ auth_log(authctxt, authenticated, method, " ssh2"); @@ -235,6 +242,10 @@ userauth_finish(Authctxt *authctxt, int authenticated, char *method) if (authctxt->failures++ > AUTH_FAIL_MAX) { packet_disconnect(AUTH_FAIL_MSG, authctxt->user); } +#ifdef _UNICOS + if (strcmp(method, "password") == 0) + cray_login_failure(authctxt->user, IA_UDBERR); +#endif /* _UNICOS */ methods = authmethods_get(); packet_start(SSH2_MSG_USERAUTH_FAILURE); packet_put_cstring(methods); |