|
Lines 56-61
Link Here
|
| 56 |
|
56 |
|
| 57 |
/* Portable-specific options */ |
57 |
/* Portable-specific options */ |
| 58 |
options->use_pam = -1; |
58 |
options->use_pam = -1; |
|
|
59 |
options->permit_pam_user_change = -1; |
| 59 |
|
60 |
|
| 60 |
/* Standard Options */ |
61 |
/* Standard Options */ |
| 61 |
options->num_ports = 0; |
62 |
options->num_ports = 0; |
|
Lines 130-135
Link Here
|
| 130 |
/* Portable-specific options */ |
131 |
/* Portable-specific options */ |
| 131 |
if (options->use_pam == -1) |
132 |
if (options->use_pam == -1) |
| 132 |
options->use_pam = 0; |
133 |
options->use_pam = 0; |
|
|
134 |
if (options->permit_pam_user_change == -1) |
| 135 |
options->permit_pam_user_change = 0; |
| 133 |
|
136 |
|
| 134 |
/* Standard Options */ |
137 |
/* Standard Options */ |
| 135 |
if (options->protocol == SSH_PROTO_UNKNOWN) |
138 |
if (options->protocol == SSH_PROTO_UNKNOWN) |
|
Lines 269-275
Link Here
|
| 269 |
typedef enum { |
272 |
typedef enum { |
| 270 |
sBadOption, /* == unknown option */ |
273 |
sBadOption, /* == unknown option */ |
| 271 |
/* Portable-specific options */ |
274 |
/* Portable-specific options */ |
| 272 |
sUsePAM, |
275 |
sUsePAM, sPermitPAMUserChange, |
| 273 |
/* Standard Options */ |
276 |
/* Standard Options */ |
| 274 |
sPort, sHostKeyFile, sServerKeyBits, sLoginGraceTime, sKeyRegenerationTime, |
277 |
sPort, sHostKeyFile, sServerKeyBits, sLoginGraceTime, sKeyRegenerationTime, |
| 275 |
sPermitRootLogin, sLogFacility, sLogLevel, |
278 |
sPermitRootLogin, sLogFacility, sLogLevel, |
|
Lines 309-316
Link Here
|
| 309 |
/* Portable-specific options */ |
312 |
/* Portable-specific options */ |
| 310 |
#ifdef USE_PAM |
313 |
#ifdef USE_PAM |
| 311 |
{ "usepam", sUsePAM, SSHCFG_GLOBAL }, |
314 |
{ "usepam", sUsePAM, SSHCFG_GLOBAL }, |
|
|
315 |
{ "permitpamuserchange", sPermitPAMUserChange, SSHCFG_GLOBAL } |
| 312 |
#else |
316 |
#else |
| 313 |
{ "usepam", sUnsupported, SSHCFG_GLOBAL }, |
317 |
{ "usepam", sUnsupported, SSHCFG_GLOBAL }, |
|
|
318 |
{ "permitpamuserchange", sUnsupported, SSHCFG_GLOBAL } |
| 314 |
#endif |
319 |
#endif |
| 315 |
{ "pamauthenticationviakbdint", sDeprecated, SSHCFG_GLOBAL }, |
320 |
{ "pamauthenticationviakbdint", sDeprecated, SSHCFG_GLOBAL }, |
| 316 |
/* Standard Options */ |
321 |
/* Standard Options */ |
|
Lines 662-667
Link Here
|
| 662 |
intptr = &options->use_pam; |
667 |
intptr = &options->use_pam; |
| 663 |
goto parse_flag; |
668 |
goto parse_flag; |
| 664 |
|
669 |
|
|
|
670 |
case sPermitPAMUserChange: |
| 671 |
intptr = &options->permit_pam_user_change; |
| 672 |
goto parse_flag; |
| 673 |
|
| 665 |
/* Standard Options */ |
674 |
/* Standard Options */ |
| 666 |
case sBadOption: |
675 |
case sBadOption: |
| 667 |
return -1; |
676 |
return -1; |