bugzilla-daemon at mindrot.org
2002-Feb-04 19:17 UTC
[Bug 98] New: auth1.c modifications for correct UNICOS behavior
http://bugzilla.mindrot.org/show_bug.cgi?id=98 Summary: auth1.c modifications for correct UNICOS behavior Product: Portable OpenSSH Version: 3.0.2p1 Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: sshd AssignedTo: openssh-unix-dev at mindrot.org ReportedBy: wendyp at cray.com --- 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)) { ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.