Lines 5-13
Link Here
|
5 |
|
5 |
|
6 |
Apply class-imposed login restrictions. |
6 |
Apply class-imposed login restrictions. |
7 |
|
7 |
|
8 |
--- auth2.c.orig 2012-12-02 16:53:20.000000000 -0600 |
8 |
--- auth2.c.orig 2017-03-20 02:39:27 UTC |
9 |
+++ auth2.c 2013-05-22 17:21:37.979631466 -0500 |
9 |
+++ auth2.c |
10 |
@@ -46,6 +46,7 @@ |
10 |
@@ -47,6 +47,7 @@ |
11 |
#include "key.h" |
11 |
#include "key.h" |
12 |
#include "hostfile.h" |
12 |
#include "hostfile.h" |
13 |
#include "auth.h" |
13 |
#include "auth.h" |
Lines 15-26
Link Here
|
15 |
#include "dispatch.h" |
15 |
#include "dispatch.h" |
16 |
#include "pathnames.h" |
16 |
#include "pathnames.h" |
17 |
#include "buffer.h" |
17 |
#include "buffer.h" |
18 |
@@ -216,6 +217,14 @@ input_userauth_request(int type, u_int32 |
18 |
@@ -217,6 +218,13 @@ input_userauth_request(int type, u_int32 |
19 |
Authmethod *m = NULL; |
19 |
Authmethod *m = NULL; |
20 |
char *user, *service, *method, *style = NULL; |
20 |
char *user, *service, *method, *style = NULL; |
21 |
int authenticated = 0; |
21 |
int authenticated = 0; |
22 |
+#ifdef HAVE_LOGIN_CAP |
22 |
+#ifdef HAVE_LOGIN_CAP |
23 |
+ struct ssh *ssh = active_state; /* XXX */ |
|
|
24 |
+ login_cap_t *lc; |
23 |
+ login_cap_t *lc; |
25 |
+ const char *from_host, *from_ip; |
24 |
+ const char *from_host, *from_ip; |
26 |
+ |
25 |
+ |
Lines 30-36
Link Here
|
30 |
|
29 |
|
31 |
if (authctxt == NULL) |
30 |
if (authctxt == NULL) |
32 |
fatal("input_userauth_request: no authctxt"); |
31 |
fatal("input_userauth_request: no authctxt"); |
33 |
@@ -262,6 +271,27 @@ input_userauth_request(int type, u_int32 |
32 |
@@ -266,6 +274,27 @@ input_userauth_request(int type, u_int32 |
34 |
"(%s,%s) -> (%s,%s)", |
33 |
"(%s,%s) -> (%s,%s)", |
35 |
authctxt->user, authctxt->service, user, service); |
34 |
authctxt->user, authctxt->service, user, service); |
36 |
} |
35 |
} |