summaryrefslogtreecommitdiff
path: root/debian/config
diff options
context:
space:
mode:
Diffstat (limited to 'debian/config')
-rw-r--r--debian/config19
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
13db_version 2.0 13db_version 2.0
14 14
15
16get_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
15if [ -n "$version" ] && dpkg --compare-versions "$version" lt 1:3.0p1-1 25if [ -n "$version" ] && dpkg --compare-versions "$version" lt 1:3.0p1-1
16then 26then
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
92fi 102fi
93 103
104if 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
111fi
112
94db_go 113db_go
95 114
96exit 0 115exit 0