[Bug 99] auth2.c modifications for correct UNICOS behavior
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Tue Apr 23 08:31:44 EST 2002
http://bugzilla.mindrot.org/show_bug.cgi?id=99
------- Additional Comments From wendyp at cray.com 2002-04-23 08:31 -------
updated for 22 april snapshot:
--- auth2.c.orig Mon Apr 22 14:29:54 2002
+++ auth2.c Mon Apr 22 14:31:19 2002
@@ -52,6 +52,10 @@
#include "match.h"
#include "monitor_wrap.h"
+#ifdef _CRAY
+#include <ia.h>
+#endif /* _CRAY */
+
/* import */
extern ServerOptions options;
extern u_char *session_id2;
@@ -247,6 +251,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");
@@ -271,6 +282,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