diff options
author | Darren Tucker <dtucker@zip.com.au> | 2003-12-31 11:37:34 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2003-12-31 11:37:34 +1100 |
commit | 22ef5087543839dd14e1591923e669518b5c13e8 (patch) | |
tree | 04fbe364bff27e55963a17f5cdce7c7c08da070c /servconf.c | |
parent | a32e19c637cec7b6c4ce779c6b6586c3880de6b2 (diff) |
- jakob@cvs.openbsd.org 2003/12/23 16:12:10
[servconf.c servconf.h session.c sshd_config]
implement KerberosGetAFSToken server option. ok markus@, beck@
Diffstat (limited to 'servconf.c')
-rw-r--r-- | servconf.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/servconf.c b/servconf.c index a6824a863..b832c75b3 100644 --- a/servconf.c +++ b/servconf.c | |||
@@ -10,7 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include "includes.h" | 12 | #include "includes.h" |
13 | RCSID("$OpenBSD: servconf.c,v 1.129 2003/12/09 21:53:36 markus Exp $"); | 13 | RCSID("$OpenBSD: servconf.c,v 1.130 2003/12/23 16:12:10 jakob Exp $"); |
14 | 14 | ||
15 | #include "ssh.h" | 15 | #include "ssh.h" |
16 | #include "log.h" | 16 | #include "log.h" |
@@ -72,6 +72,7 @@ initialize_server_options(ServerOptions *options) | |||
72 | options->kerberos_authentication = -1; | 72 | options->kerberos_authentication = -1; |
73 | options->kerberos_or_local_passwd = -1; | 73 | options->kerberos_or_local_passwd = -1; |
74 | options->kerberos_ticket_cleanup = -1; | 74 | options->kerberos_ticket_cleanup = -1; |
75 | options->kerberos_get_afs_token = -1; | ||
75 | options->gss_authentication=-1; | 76 | options->gss_authentication=-1; |
76 | options->gss_cleanup_creds = -1; | 77 | options->gss_cleanup_creds = -1; |
77 | options->password_authentication = -1; | 78 | options->password_authentication = -1; |
@@ -181,6 +182,8 @@ fill_default_server_options(ServerOptions *options) | |||
181 | options->kerberos_or_local_passwd = 1; | 182 | options->kerberos_or_local_passwd = 1; |
182 | if (options->kerberos_ticket_cleanup == -1) | 183 | if (options->kerberos_ticket_cleanup == -1) |
183 | options->kerberos_ticket_cleanup = 1; | 184 | options->kerberos_ticket_cleanup = 1; |
185 | if (options->kerberos_get_afs_token == -1) | ||
186 | options->kerberos_get_afs_token = 0; | ||
184 | if (options->gss_authentication == -1) | 187 | if (options->gss_authentication == -1) |
185 | options->gss_authentication = 0; | 188 | options->gss_authentication = 0; |
186 | if (options->gss_cleanup_creds == -1) | 189 | if (options->gss_cleanup_creds == -1) |
@@ -250,6 +253,7 @@ typedef enum { | |||
250 | sPermitRootLogin, sLogFacility, sLogLevel, | 253 | sPermitRootLogin, sLogFacility, sLogLevel, |
251 | sRhostsRSAAuthentication, sRSAAuthentication, | 254 | sRhostsRSAAuthentication, sRSAAuthentication, |
252 | sKerberosAuthentication, sKerberosOrLocalPasswd, sKerberosTicketCleanup, | 255 | sKerberosAuthentication, sKerberosOrLocalPasswd, sKerberosTicketCleanup, |
256 | sKerberosGetAFSToken, | ||
253 | sKerberosTgtPassing, sChallengeResponseAuthentication, | 257 | sKerberosTgtPassing, sChallengeResponseAuthentication, |
254 | sPasswordAuthentication, sKbdInteractiveAuthentication, sListenAddress, | 258 | sPasswordAuthentication, sKbdInteractiveAuthentication, sListenAddress, |
255 | sPrintMotd, sPrintLastLog, sIgnoreRhosts, | 259 | sPrintMotd, sPrintLastLog, sIgnoreRhosts, |
@@ -301,10 +305,12 @@ static struct { | |||
301 | { "kerberosauthentication", sKerberosAuthentication }, | 305 | { "kerberosauthentication", sKerberosAuthentication }, |
302 | { "kerberosorlocalpasswd", sKerberosOrLocalPasswd }, | 306 | { "kerberosorlocalpasswd", sKerberosOrLocalPasswd }, |
303 | { "kerberosticketcleanup", sKerberosTicketCleanup }, | 307 | { "kerberosticketcleanup", sKerberosTicketCleanup }, |
308 | { "kerberosgetafstoken", sKerberosGetAFSToken }, | ||
304 | #else | 309 | #else |
305 | { "kerberosauthentication", sUnsupported }, | 310 | { "kerberosauthentication", sUnsupported }, |
306 | { "kerberosorlocalpasswd", sUnsupported }, | 311 | { "kerberosorlocalpasswd", sUnsupported }, |
307 | { "kerberosticketcleanup", sUnsupported }, | 312 | { "kerberosticketcleanup", sUnsupported }, |
313 | { "kerberosgetafstoken", sUnsupported }, | ||
308 | #endif | 314 | #endif |
309 | { "kerberostgtpassing", sUnsupported }, | 315 | { "kerberostgtpassing", sUnsupported }, |
310 | { "afstokenpassing", sUnsupported }, | 316 | { "afstokenpassing", sUnsupported }, |
@@ -630,6 +636,10 @@ parse_flag: | |||
630 | intptr = &options->kerberos_ticket_cleanup; | 636 | intptr = &options->kerberos_ticket_cleanup; |
631 | goto parse_flag; | 637 | goto parse_flag; |
632 | 638 | ||
639 | case sKerberosGetAFSToken: | ||
640 | intptr = &options->kerberos_get_afs_token; | ||
641 | goto parse_flag; | ||
642 | |||
633 | case sGssAuthentication: | 643 | case sGssAuthentication: |
634 | intptr = &options->gss_authentication; | 644 | intptr = &options->gss_authentication; |
635 | goto parse_flag; | 645 | goto parse_flag; |