diff options
Diffstat (limited to 'debian/config')
-rw-r--r-- | debian/config | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/config b/debian/config index b5cff528c..6d9729e62 100644 --- a/debian/config +++ b/debian/config | |||
@@ -12,6 +12,16 @@ fi | |||
12 | . /usr/share/debconf/confmodule | 12 | . /usr/share/debconf/confmodule |
13 | db_version 2.0 | 13 | db_version 2.0 |
14 | 14 | ||
15 | |||
16 | get_config_option() { | ||
17 | option="$1" | ||
18 | |||
19 | # TODO: actually only one '=' allowed after option | ||
20 | perl -ne 'print if s/^[[:space:]]*'"$option"'[[:space:]=]+//i' \ | ||
21 | /etc/ssh/sshd_config | ||
22 | } | ||
23 | |||
24 | |||
15 | if [ -n "$version" ] && dpkg --compare-versions "$version" lt 1:3.0p1-1 | 25 | if [ -n "$version" ] && dpkg --compare-versions "$version" lt 1:3.0p1-1 |
16 | then | 26 | then |
17 | db_input medium ssh/ssh2_keys_merged | 27 | db_input medium ssh/ssh2_keys_merged |
@@ -91,6 +101,15 @@ if dpkg --compare-versions "$version" lt-nl 1:3.5p1-3; then | |||
91 | db_input high ssh/user_environment_tell || true | 101 | db_input high ssh/user_environment_tell || true |
92 | fi | 102 | fi |
93 | 103 | ||
104 | if dpkg --compare-versions "$version" lt-nl 1:3.8.1p1-8.sarge.1; then | ||
105 | passwordauth="$(get_config_option PasswordAuthentication)" | ||
106 | crauth="$(get_config_option ChallengeResponseAuthentication)" | ||
107 | if [ "$passwordauth" = no ] && \ | ||
108 | ([ -z "$crauth" ] || [ "$crauth" = yes ]); then | ||
109 | db_input critical ssh/disable_cr_auth || true | ||
110 | fi | ||
111 | fi | ||
112 | |||
94 | db_go | 113 | db_go |
95 | 114 | ||
96 | exit 0 | 115 | exit 0 |