diff options
Diffstat (limited to 'debian/config')
-rw-r--r-- | debian/config | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/debian/config b/debian/config index 5f98d713e..6670b4cae 100644 --- a/debian/config +++ b/debian/config | |||
@@ -57,6 +57,17 @@ then | |||
57 | then db_input medium ssh/protocol2_only ||true | 57 | then db_input medium ssh/protocol2_only ||true |
58 | fi | 58 | fi |
59 | fi | 59 | fi |
60 | |||
61 | if dpkg --compare-versions "$version" lt-nl 1:3.8.1p1-8.sarge.1 | ||
62 | then | ||
63 | passwordauth="$(get_config_option PasswordAuthentication)" | ||
64 | crauth="$(get_config_option ChallengeResponseAuthentication)" | ||
65 | if [ "$passwordauth" = no ] && \ | ||
66 | ([ -z "$crauth" ] || [ "$crauth" = yes ]) | ||
67 | then | ||
68 | db_input critical ssh/disable_cr_auth || true | ||
69 | fi | ||
70 | fi | ||
60 | fi | 71 | fi |
61 | 72 | ||
62 | db_input medium ssh/SUID_client || true | 73 | db_input medium ssh/SUID_client || true |
@@ -103,15 +114,6 @@ if dpkg --compare-versions "$version" lt-nl 1:3.5p1-3; then | |||
103 | db_input high ssh/user_environment_tell || true | 114 | db_input high ssh/user_environment_tell || true |
104 | fi | 115 | fi |
105 | 116 | ||
106 | if dpkg --compare-versions "$version" lt-nl 1:3.8.1p1-8.sarge.1; then | ||
107 | passwordauth="$(get_config_option PasswordAuthentication)" | ||
108 | crauth="$(get_config_option ChallengeResponseAuthentication)" | ||
109 | if [ "$passwordauth" = no ] && \ | ||
110 | ([ -z "$crauth" ] || [ "$crauth" = yes ]); then | ||
111 | db_input critical ssh/disable_cr_auth || true | ||
112 | fi | ||
113 | fi | ||
114 | |||
115 | db_go | 117 | db_go |
116 | 118 | ||
117 | exit 0 | 119 | exit 0 |