diff options
Diffstat (limited to 'gnu/services/ssh.scm')
| -rw-r--r-- | gnu/services/ssh.scm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gnu/services/ssh.scm b/gnu/services/ssh.scm index 1891db04876..a018052eeba 100644 --- a/gnu/services/ssh.scm +++ b/gnu/services/ssh.scm | |||
| @@ -6,6 +6,8 @@ | |||
| 6 | ;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net> | 6 | ;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net> |
| 7 | ;;; Copyright © 2020 pinoaffe <pinoaffe@airmail.cc> | 7 | ;;; Copyright © 2020 pinoaffe <pinoaffe@airmail.cc> |
| 8 | ;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com> | 8 | ;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com> |
| 9 | ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re> | ||
| 10 | ;;; Copyright © 2021 Tobias Geerinckx-Rice <me@tobias.gr> | ||
| 9 | ;;; | 11 | ;;; |
| 10 | ;;; This file is part of GNU Guix. | 12 | ;;; This file is part of GNU Guix. |
| 11 | ;;; | 13 | ;;; |
| @@ -30,6 +32,7 @@ | |||
| 30 | #:use-module (gnu services web) | 32 | #:use-module (gnu services web) |
| 31 | #:use-module (gnu system pam) | 33 | #:use-module (gnu system pam) |
| 32 | #:use-module (gnu system shadow) | 34 | #:use-module (gnu system shadow) |
| 35 | #:use-module (guix deprecation) | ||
| 33 | #:use-module (guix gexp) | 36 | #:use-module (guix gexp) |
| 34 | #:use-module (guix records) | 37 | #:use-module (guix records) |
| 35 | #:use-module (guix modules) | 38 | #:use-module (guix modules) |
| @@ -288,7 +291,7 @@ The other options should be self-descriptive." | |||
| 288 | ;; integer | 291 | ;; integer |
| 289 | (port-number openssh-configuration-port-number | 292 | (port-number openssh-configuration-port-number |
| 290 | (default 22)) | 293 | (default 22)) |
| 291 | ;; Boolean | 'without-password | 294 | ;; Boolean | 'prohibit-password |
| 292 | (permit-root-login openssh-configuration-permit-root-login | 295 | (permit-root-login openssh-configuration-permit-root-login |
| 293 | (default #f)) | 296 | (default #f)) |
| 294 | ;; Boolean | 297 | ;; Boolean |
| @@ -441,7 +444,11 @@ of user-name/file-like tuples." | |||
| 441 | #$(match (openssh-configuration-permit-root-login config) | 444 | #$(match (openssh-configuration-permit-root-login config) |
| 442 | (#t "yes") | 445 | (#t "yes") |
| 443 | (#f "no") | 446 | (#f "no") |
| 444 | ('without-password "without-password"))) | 447 | ('without-password (warn-about-deprecation |
| 448 | 'without-password #f | ||
| 449 | #:replacement 'prohibit-password) | ||
| 450 | "prohibit-password") | ||
| 451 | ('prohibit-password "prohibit-password"))) | ||
| 445 | (format port "PermitEmptyPasswords ~a\n" | 452 | (format port "PermitEmptyPasswords ~a\n" |
| 446 | #$(if (openssh-configuration-allow-empty-passwords? config) | 453 | #$(if (openssh-configuration-allow-empty-passwords? config) |
| 447 | "yes" "no")) | 454 | "yes" "no")) |
