summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2004-10-06 01:01:35 +0000
committerColin Watson <cjwatson@debian.org>2004-10-06 01:01:35 +0000
commit9c0a1b315ca0bcf1db337e25db71b03e4fc2b586 (patch)
tree3c393be629006f8d5b809cc27c89a758791dd779
parent2aa6c11ef1f1ec0ddd319987c5be30e8e42c805a (diff)
Don't ask ssh/disable_cr_auth unless /etc/ssh/sshd_config exists.
-rw-r--r--debian/config20
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
60fi 71fi
61 72
62db_input medium ssh/SUID_client || true 73db_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
104fi 115fi
105 116
106if 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
113fi
114
115db_go 117db_go
116 118
117exit 0 119exit 0