diff options
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r-- | debian/openssh-server.postinst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst index bd14ba66e..2d7dbc9ea 100644 --- a/debian/openssh-server.postinst +++ b/debian/openssh-server.postinst | |||
@@ -72,6 +72,17 @@ set_config_option() { | |||
72 | } | 72 | } |
73 | 73 | ||
74 | 74 | ||
75 | remove_obsolete_gssapi() { | ||
76 | grep -qi '^[ ]*GSSAPINoMICAuthentication' /etc/ssh/sshd_config \ | ||
77 | || return 0 | ||
78 | perl -pe 's/^(\s*GSSAPINoMICAuthentication)/\#$1/i' \ | ||
79 | < /etc/ssh/sshd_config > /etc/ssh/sshd_config.dpkg-new | ||
80 | chown --reference /etc/ssh/sshd_config /etc/ssh/sshd_config.dpkg-new | ||
81 | chmod --reference /etc/ssh/sshd_config /etc/ssh/sshd_config.dpkg-new | ||
82 | mv /etc/ssh/sshd_config.dpkg-new /etc/ssh/sshd_config | ||
83 | } | ||
84 | |||
85 | |||
75 | host_keys_required() { | 86 | host_keys_required() { |
76 | hostkeys="$(get_config_option HostKey)" | 87 | hostkeys="$(get_config_option HostKey)" |
77 | if [ "$hostkeys" ]; then | 88 | if [ "$hostkeys" ]; then |
@@ -190,6 +201,9 @@ create_sshdconfig() { | |||
190 | move_subsystem_sftp | 201 | move_subsystem_sftp |
191 | fi | 202 | fi |
192 | 203 | ||
204 | # Remove obsolete GSSAPI options. | ||
205 | remove_obsolete_gssapi | ||
206 | |||
193 | return 0 | 207 | return 0 |
194 | fi | 208 | fi |
195 | fi | 209 | fi |