Bug 98 - auth1.c modifications for correct UNICOS behavior
Summary: auth1.c modifications for correct UNICOS behavior
Status: CLOSED INVALID
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: -current
Hardware: Other Other
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-05 06:17 AEDT by wendy palm
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wendy palm 2002-02-05 06:17:10 AEDT
--- 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)) {
Comment 1 wendy palm 2002-04-23 08:41:38 AEST
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 &&
Comment 2 wendy palm 2002-07-23 08:43:22 AEST
superceeded by bug 367.
Comment 3 Damien Miller 2004-04-14 12:24:17 AEST
Mass change of RESOLVED bugs to CLOSED