|
Lines 74-79
Link Here
|
| 74 |
options->kerberos_get_afs_token = -1; |
74 |
options->kerberos_get_afs_token = -1; |
| 75 |
options->gss_authentication=-1; |
75 |
options->gss_authentication=-1; |
| 76 |
options->gss_cleanup_creds = -1; |
76 |
options->gss_cleanup_creds = -1; |
|
|
77 |
options->gss_import_hostname = -1; |
| 77 |
options->password_authentication = -1; |
78 |
options->password_authentication = -1; |
| 78 |
options->kbd_interactive_authentication = -1; |
79 |
options->kbd_interactive_authentication = -1; |
| 79 |
options->challenge_response_authentication = -1; |
80 |
options->challenge_response_authentication = -1; |
|
Lines 187-192
Link Here
|
| 187 |
options->kerberos_get_afs_token = 0; |
188 |
options->kerberos_get_afs_token = 0; |
| 188 |
if (options->gss_authentication == -1) |
189 |
if (options->gss_authentication == -1) |
| 189 |
options->gss_authentication = 0; |
190 |
options->gss_authentication = 0; |
|
|
191 |
if (options->gss_import_hostname == -1) |
| 192 |
options->gss_import_hostname = GSS_IMPORT_HOSTNAME; |
| 190 |
if (options->gss_cleanup_creds == -1) |
193 |
if (options->gss_cleanup_creds == -1) |
| 191 |
options->gss_cleanup_creds = 1; |
194 |
options->gss_cleanup_creds = 1; |
| 192 |
if (options->password_authentication == -1) |
195 |
if (options->password_authentication == -1) |
|
Lines 270-276
Link Here
|
| 270 |
sBanner, sUseDNS, sHostbasedAuthentication, |
273 |
sBanner, sUseDNS, sHostbasedAuthentication, |
| 271 |
sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, |
274 |
sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, |
| 272 |
sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, |
275 |
sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, |
| 273 |
sGssAuthentication, sGssCleanupCreds, sAcceptEnv, |
276 |
sGssAuthentication, sGssCleanupCreds, sGssImportHostname, sAcceptEnv, |
| 274 |
sUsePrivilegeSeparation, |
277 |
sUsePrivilegeSeparation, |
| 275 |
sDeprecated, sUnsupported |
278 |
sDeprecated, sUnsupported |
| 276 |
} ServerOpCodes; |
279 |
} ServerOpCodes; |
|
Lines 325-333
Link Here
|
| 325 |
#ifdef GSSAPI |
328 |
#ifdef GSSAPI |
| 326 |
{ "gssapiauthentication", sGssAuthentication }, |
329 |
{ "gssapiauthentication", sGssAuthentication }, |
| 327 |
{ "gssapicleanupcredentials", sGssCleanupCreds }, |
330 |
{ "gssapicleanupcredentials", sGssCleanupCreds }, |
|
|
331 |
{ "gssapiimporthostname", sGssImportHostname}, |
| 328 |
#else |
332 |
#else |
| 329 |
{ "gssapiauthentication", sUnsupported }, |
333 |
{ "gssapiauthentication", sUnsupported }, |
| 330 |
{ "gssapicleanupcredentials", sUnsupported }, |
334 |
{ "gssapicleanupcredentials", sUnsupported }, |
|
|
335 |
{ "gssapiimporthostname", sUnsupported}, |
| 331 |
#endif |
336 |
#endif |
| 332 |
{ "passwordauthentication", sPasswordAuthentication }, |
337 |
{ "passwordauthentication", sPasswordAuthentication }, |
| 333 |
{ "kbdinteractiveauthentication", sKbdInteractiveAuthentication }, |
338 |
{ "kbdinteractiveauthentication", sKbdInteractiveAuthentication }, |
|
Lines 658-663
Link Here
|
| 658 |
intptr = &options->gss_cleanup_creds; |
663 |
intptr = &options->gss_cleanup_creds; |
| 659 |
goto parse_flag; |
664 |
goto parse_flag; |
| 660 |
|
665 |
|
|
|
666 |
case sGssImportHostname: |
| 667 |
intptr = &options->gss_import_hostname; |
| 668 |
arg = strdelim(&cp); |
| 669 |
if (!arg || *arg == '\0') |
| 670 |
fatal("%s line %d: missing hostname/" |
| 671 |
"connection-ip/gss-c-no-name " |
| 672 |
"argument.", filename, linenum); |
| 673 |
value = 0; /* silence compiler */ |
| 674 |
if (strcmp(arg, "hostname") == 0) |
| 675 |
value = GSS_IMPORT_HOSTNAME; |
| 676 |
else if (strcmp(arg, "connection-ip") == 0) |
| 677 |
value = GSS_IMPORT_CONNECTION_IP; |
| 678 |
else if (strcmp(arg, "gss-c-no-name") == 0) |
| 679 |
value = GSS_IMPORT_NO_NAME; |
| 680 |
else |
| 681 |
fatal("%s line %d: Bad hostname/" |
| 682 |
"connection-ip/gss-c-no-name " |
| 683 |
"argument: %s", filename, linenum, arg); |
| 684 |
if (*intptr == -1) |
| 685 |
*intptr = value; |
| 686 |
break; |
| 687 |
|
| 661 |
case sPasswordAuthentication: |
688 |
case sPasswordAuthentication: |
| 662 |
intptr = &options->password_authentication; |
689 |
intptr = &options->password_authentication; |
| 663 |
goto parse_flag; |
690 |
goto parse_flag; |