|
Lines 146-151
Link Here
|
| 146 |
options->ip_qos_interactive = -1; |
146 |
options->ip_qos_interactive = -1; |
| 147 |
options->ip_qos_bulk = -1; |
147 |
options->ip_qos_bulk = -1; |
| 148 |
options->version_addendum = NULL; |
148 |
options->version_addendum = NULL; |
|
|
149 |
options->adm_forced_shell = NULL; |
| 149 |
} |
150 |
} |
| 150 |
|
151 |
|
| 151 |
void |
152 |
void |
|
Lines 334-340
Link Here
|
| 334 |
sRevokedKeys, sTrustedUserCAKeys, sAuthorizedPrincipalsFile, |
335 |
sRevokedKeys, sTrustedUserCAKeys, sAuthorizedPrincipalsFile, |
| 335 |
sKexAlgorithms, sIPQoS, sVersionAddendum, |
336 |
sKexAlgorithms, sIPQoS, sVersionAddendum, |
| 336 |
sAuthorizedKeysCommand, sAuthorizedKeysCommandUser, |
337 |
sAuthorizedKeysCommand, sAuthorizedKeysCommandUser, |
| 337 |
sAuthenticationMethods, |
338 |
sAuthenticationMethods, sForceShell, |
| 338 |
sDeprecated, sUnsupported |
339 |
sDeprecated, sUnsupported |
| 339 |
} ServerOpCodes; |
340 |
} ServerOpCodes; |
| 340 |
|
341 |
|
|
Lines 463-468
Link Here
|
| 463 |
{ "authorizedkeyscommanduser", sAuthorizedKeysCommandUser, SSHCFG_ALL }, |
464 |
{ "authorizedkeyscommanduser", sAuthorizedKeysCommandUser, SSHCFG_ALL }, |
| 464 |
{ "versionaddendum", sVersionAddendum, SSHCFG_GLOBAL }, |
465 |
{ "versionaddendum", sVersionAddendum, SSHCFG_GLOBAL }, |
| 465 |
{ "authenticationmethods", sAuthenticationMethods, SSHCFG_ALL }, |
466 |
{ "authenticationmethods", sAuthenticationMethods, SSHCFG_ALL }, |
|
|
467 |
{ "forceshell", sForceShell, SSHCFG_ALL }, |
| 466 |
{ NULL, sBadOption, 0 } |
468 |
{ NULL, sBadOption, 0 } |
| 467 |
}; |
469 |
}; |
| 468 |
|
470 |
|
|
Lines 1552-1557
Link Here
|
| 1552 |
} |
1554 |
} |
| 1553 |
return 0; |
1555 |
return 0; |
| 1554 |
|
1556 |
|
|
|
1557 |
case sForceShell: |
| 1558 |
if (cp == NULL) |
| 1559 |
fatal("%.200s line %d: Missing argument.", filename, |
| 1560 |
linenum); |
| 1561 |
len = strspn(cp, WHITESPACE); |
| 1562 |
if (*activep && options->adm_forced_shell == NULL) |
| 1563 |
options->adm_forced_shell = xstrdup(cp + len); |
| 1564 |
return 0; |
| 1565 |
|
| 1555 |
case sDeprecated: |
1566 |
case sDeprecated: |
| 1556 |
logit("%s line %d: Deprecated option %s", |
1567 |
logit("%s line %d: Deprecated option %s", |
| 1557 |
filename, linenum, arg); |
1568 |
filename, linenum, arg); |
|
Lines 1731-1736
Link Here
|
| 1731 |
|
1742 |
|
| 1732 |
M_CP_STROPT(adm_forced_command); |
1743 |
M_CP_STROPT(adm_forced_command); |
| 1733 |
M_CP_STROPT(chroot_directory); |
1744 |
M_CP_STROPT(chroot_directory); |
|
|
1745 |
M_CP_STROPT(adm_forced_shell); |
| 1734 |
} |
1746 |
} |
| 1735 |
|
1747 |
|
| 1736 |
#undef M_CP_INTOPT |
1748 |
#undef M_CP_INTOPT |
|
Lines 1968-1973
Link Here
|
| 1968 |
dump_cfg_string(sVersionAddendum, o->version_addendum); |
1980 |
dump_cfg_string(sVersionAddendum, o->version_addendum); |
| 1969 |
dump_cfg_string(sAuthorizedKeysCommand, o->authorized_keys_command); |
1981 |
dump_cfg_string(sAuthorizedKeysCommand, o->authorized_keys_command); |
| 1970 |
dump_cfg_string(sAuthorizedKeysCommandUser, o->authorized_keys_command_user); |
1982 |
dump_cfg_string(sAuthorizedKeysCommandUser, o->authorized_keys_command_user); |
|
|
1983 |
dump_cfg_string(sForceShell, o->adm_forced_shell); |
| 1971 |
|
1984 |
|
| 1972 |
/* string arguments requiring a lookup */ |
1985 |
/* string arguments requiring a lookup */ |
| 1973 |
dump_cfg_string(sLogLevel, log_level_name(o->log_level)); |
1986 |
dump_cfg_string(sLogLevel, log_level_name(o->log_level)); |