--- auth1.c.orig Mon Feb 4 12:32:51 2002 +++ auth1.c Mon Feb 4 12:36:32 2002 @@ -25,10 +25,18 @@ #include "session.h" #include "misc.h" #include "uidswap.h" +#ifdef _CRAY +#include <ia.h> +#endif /* _CRAY */ /* import */ extern ServerOptions options; +#ifdef _CRAY +extern void cray_login_failure(char *username, int errcode); +extern int cray_access_denied(char *username); +#endif /* _CRAY */ + /* * convert ssh auth msg type into description */ @@ -305,7 +313,15 @@ if (!authctxt->valid && authenticated) fatal("INTERNAL ERROR: authenticated invalid user %s", authctxt->user); - +#ifdef _CRAY + if (type == SSH_CMSG_AUTH_PASSWORD && !authenticated) { + cray_login_failure(authctxt->user, IA_UDBERR); + } + if (authenticated && cray_access_denied(authctxt->user)) { + authenticated = 0; + fatal("Access denied for user %s.",authctxt->user); + } +#endif /* _CRAY */ #ifdef HAVE_CYGWIN if (authenticated && !check_nt_auth(type == SSH_CMSG_AUTH_PASSWORD, pw)) {
updated patch for 22 april snapshot: --- auth1.c.orig Mon Apr 22 14:28:12 2002 +++ auth1.c Mon Apr 22 14:29:48 2002 @@ -26,6 +26,9 @@ #include "session.h" #include "uidswap.h" #include "monitor_wrap.h" +#ifdef _CRAY +#include <ia.h> +#endif /* _CRAY */ /* import */ extern ServerOptions options; @@ -291,6 +294,16 @@ if (!authctxt->valid && authenticated) fatal("INTERNAL ERROR: authenticated invalid user %s", authctxt->user); + +#ifdef _CRAY + if (type == SSH_CMSG_AUTH_PASSWORD && !authenticated) { + cray_login_failure(authctxt->user, IA_UDBERR); + } + if (authenticated && cray_access_denied(authctxt->user)) { + authenticated = 0; + fatal("Access denied for user %s.",authctxt->user); + } +#endif /* _CRAY */ #ifdef HAVE_CYGWIN if (authenticated &&
superceeded by bug 367.
Mass change of RESOLVED bugs to CLOSED