diff options
author | Darren Tucker <dtucker@zip.com.au> | 2003-08-26 11:49:55 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2003-08-26 11:49:55 +1000 |
commit | 0efd155c3c184f0eaa2e1eb244eaaf066e6906e0 (patch) | |
tree | 10f24586373d825d68cefd4a3746fe738cf0614a /auth2.c | |
parent | 30912f7259b771a1cf705c0bc47a6c3f3edffb43 (diff) |
- markus@cvs.openbsd.org 2003/08/22 10:56:09
[auth2.c auth2-gss.c auth.h compat.c compat.h gss-genr.c gss-serv-krb5.c
gss-serv.c monitor.c monitor.h monitor_wrap.c monitor_wrap.h readconf.c
readconf.h servconf.c servconf.h session.c session.h ssh-gss.h
ssh_config.5 sshconnect2.c sshd_config sshd_config.5]
support GSS API user authentication; patches from Simon Wilkinson,
stripped down and tested by Jakob and myself.
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: auth2.c,v 1.99 2003/06/24 08:23:46 markus Exp $"); | 26 | RCSID("$OpenBSD: auth2.c,v 1.100 2003/08/22 10:56:08 markus Exp $"); |
27 | 27 | ||
28 | #include "ssh2.h" | 28 | #include "ssh2.h" |
29 | #include "xmalloc.h" | 29 | #include "xmalloc.h" |
@@ -36,6 +36,10 @@ RCSID("$OpenBSD: auth2.c,v 1.99 2003/06/24 08:23:46 markus Exp $"); | |||
36 | #include "pathnames.h" | 36 | #include "pathnames.h" |
37 | #include "monitor_wrap.h" | 37 | #include "monitor_wrap.h" |
38 | 38 | ||
39 | #ifdef GSSAPI | ||
40 | #include "ssh-gss.h" | ||
41 | #endif | ||
42 | |||
39 | /* import */ | 43 | /* import */ |
40 | extern ServerOptions options; | 44 | extern ServerOptions options; |
41 | extern u_char *session_id2; | 45 | extern u_char *session_id2; |
@@ -53,10 +57,16 @@ extern Authmethod method_hostbased; | |||
53 | #ifdef KRB5 | 57 | #ifdef KRB5 |
54 | extern Authmethod method_kerberos; | 58 | extern Authmethod method_kerberos; |
55 | #endif | 59 | #endif |
60 | #ifdef GSSAPI | ||
61 | extern Authmethod method_gssapi; | ||
62 | #endif | ||
56 | 63 | ||
57 | Authmethod *authmethods[] = { | 64 | Authmethod *authmethods[] = { |
58 | &method_none, | 65 | &method_none, |
59 | &method_pubkey, | 66 | &method_pubkey, |
67 | #ifdef GSSAPI | ||
68 | &method_gssapi, | ||
69 | #endif | ||
60 | &method_passwd, | 70 | &method_passwd, |
61 | &method_kbdint, | 71 | &method_kbdint, |
62 | &method_hostbased, | 72 | &method_hostbased, |
@@ -184,6 +194,12 @@ input_userauth_request(int type, u_int32_t seq, void *ctxt) | |||
184 | } | 194 | } |
185 | /* reset state */ | 195 | /* reset state */ |
186 | auth2_challenge_stop(authctxt); | 196 | auth2_challenge_stop(authctxt); |
197 | |||
198 | #ifdef GSSAPI | ||
199 | dispatch_set(SSH2_MSG_USERAUTH_GSSAPI_TOKEN, NULL); | ||
200 | dispatch_set(SSH2_MSG_USERAUTH_GSSAPI_EXCHANGE_COMPLETE, NULL); | ||
201 | #endif | ||
202 | |||
187 | authctxt->postponed = 0; | 203 | authctxt->postponed = 0; |
188 | 204 | ||
189 | /* try to authenticate user */ | 205 | /* try to authenticate user */ |