diff options
author | Damien Miller <djm@mindrot.org> | 2001-04-25 22:44:14 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-04-25 22:44:14 +1000 |
commit | f815442116071c69525915018edf5a32081bddc2 (patch) | |
tree | d7c25bb4c56ee54699a2d06f061fc7c4e9e85e06 /servconf.c | |
parent | 768f975b1394cc0c0313b69175ea8fcc3a4dc2bc (diff) |
- (djm) Add new server configuration directive 'PAMAuthenticationViaKbdInt'
(default: off), implies KbdInteractiveAuthentication. Suggestion from
markus@
Diffstat (limited to 'servconf.c')
-rw-r--r-- | servconf.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/servconf.c b/servconf.c index 3d0c9efa6..73c07c2fe 100644 --- a/servconf.c +++ b/servconf.c | |||
@@ -101,6 +101,7 @@ initialize_server_options(ServerOptions *options) | |||
101 | options->reverse_mapping_check = -1; | 101 | options->reverse_mapping_check = -1; |
102 | options->client_alive_interval = -1; | 102 | options->client_alive_interval = -1; |
103 | options->client_alive_count_max = -1; | 103 | options->client_alive_count_max = -1; |
104 | options->pam_authentication_via_kbd_int = -1; | ||
104 | } | 105 | } |
105 | 106 | ||
106 | void | 107 | void |
@@ -207,6 +208,8 @@ fill_default_server_options(ServerOptions *options) | |||
207 | options->client_alive_interval = 0; | 208 | options->client_alive_interval = 0; |
208 | if (options->client_alive_count_max == -1) | 209 | if (options->client_alive_count_max == -1) |
209 | options->client_alive_count_max = 3; | 210 | options->client_alive_count_max = 3; |
211 | if (options->pam_authentication_via_kbd_int == -1) | ||
212 | options->pam_authentication_via_kbd_int = 0; | ||
210 | } | 213 | } |
211 | 214 | ||
212 | /* Keyword tokens. */ | 215 | /* Keyword tokens. */ |
@@ -232,7 +235,7 @@ typedef enum { | |||
232 | sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, sMaxStartups, | 235 | sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, sMaxStartups, |
233 | sBanner, sReverseMappingCheck, sHostbasedAuthentication, | 236 | sBanner, sReverseMappingCheck, sHostbasedAuthentication, |
234 | sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, | 237 | sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, |
235 | sClientAliveCountMax | 238 | sClientAliveCountMax, sPAMAuthenticationViaKbdInt |
236 | } ServerOpCodes; | 239 | } ServerOpCodes; |
237 | 240 | ||
238 | /* Textual representation of the tokens. */ | 241 | /* Textual representation of the tokens. */ |
@@ -298,6 +301,7 @@ static struct { | |||
298 | { "reversemappingcheck", sReverseMappingCheck }, | 301 | { "reversemappingcheck", sReverseMappingCheck }, |
299 | { "clientaliveinterval", sClientAliveInterval }, | 302 | { "clientaliveinterval", sClientAliveInterval }, |
300 | { "clientalivecountmax", sClientAliveCountMax }, | 303 | { "clientalivecountmax", sClientAliveCountMax }, |
304 | { "PAMAuthenticationViaKbdInt", sPAMAuthenticationViaKbdInt }, | ||
301 | { NULL, 0 } | 305 | { NULL, 0 } |
302 | }; | 306 | }; |
303 | 307 | ||
@@ -794,6 +798,10 @@ parse_flag: | |||
794 | case sClientAliveCountMax: | 798 | case sClientAliveCountMax: |
795 | intptr = &options->client_alive_count_max; | 799 | intptr = &options->client_alive_count_max; |
796 | goto parse_int; | 800 | goto parse_int; |
801 | case sPAMAuthenticationViaKbdInt: | ||
802 | intptr = &options->pam_authentication_via_kbd_int; | ||
803 | goto parse_flag; | ||
804 | |||
797 | default: | 805 | default: |
798 | fatal("%s line %d: Missing handler for opcode %s (%d)", | 806 | fatal("%s line %d: Missing handler for opcode %s (%d)", |
799 | filename, linenum, arg, opcode); | 807 | filename, linenum, arg, opcode); |