[Bug 99] New: auth2.c modifications for correct UNICOS behavior

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Feb 5 06:18:37 EST 2002


http://bugzilla.mindrot.org/show_bug.cgi?id=99

           Summary: auth2.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


--- auth2.c.orig        Mon Feb  4 12:32:51 2002
+++ auth2.c     Mon Feb  4 12:38:44 2002
@@ -51,12 +51,20 @@
 #include "hostfile.h"
 #include "canohost.h"
 #include "match.h"
+#ifdef _CRAY
+#include <ia.h>
+#endif /* _CRAY */

 /* import */
 extern ServerOptions options;
 extern u_char *session_id2;
 extern int session_id2_len;

+#ifdef _CRAY
+extern void cray_login_failure(char *username, int errcode);
+extern int  cray_access_denied(char *username);
+#endif /* _CRAY */
+
 static Authctxt        *x_authctxt = NULL;
 static int one = 1;

@@ -245,6 +253,13 @@
                authenticated = 0;
 #endif /* USE_PAM */

+#ifdef _CRAY
+       if (authenticated && cray_access_denied(authctxt->user)) {
+               authenticated = 0;
+               fatal("Access denied for user %s.",authctxt->user);
+       }
+#endif /* _CRAY */
+
        /* Log before sending the reply */
        auth_log(authctxt, authenticated, method, " ssh2");

@@ -269,6 +284,10 @@
 #endif /* WITH_AIXAUTHENTICATE */
                        packet_disconnect(AUTH_FAIL_MSG, authctxt->user);
                }
+#ifdef _CRAY
+               if (strcmp(method, "password") == 0)
+                       cray_login_failure(authctxt->user, IA_UDBERR);
+#endif /* _CRAY */
                methods = authmethods_get();
                packet_start(SSH2_MSG_USERAUTH_FAILURE);
                packet_put_cstring(methods);



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the openssh-unix-dev mailing list