From: Bruno Victal <mirai@makinata.eu>
To: Felix Lechner <felix.lechner@lease-up.com>
Cc: 67555@debbugs.gnu.org
Subject: [bug#67555] [PATCH 2/2] services: kerberos/heimdal.scm: New file, add Heimdal Kerberos services.
Date: Sat, 16 Dec 2023 21:35:16 +0000 [thread overview]
Message-ID: <938be86c-3269-4bb1-b6f9-6e4732d6515d@makinata.eu> (raw)
In-Reply-To: <b0b0e3ebe07b86a83295bce34a81a71daba2fd89.1701390970.git.felix.lechner@lease-up.com>
[-- Attachment #1.1: Type: text/plain, Size: 2160 bytes --]
Hi Felix,
On 2023-12-01 00:45, Felix Lechner wrote:
> + (ports
> + (list-of-strings '())
> + "Ports to listen on.")
I'd prefer to use a list of exact-integers. (*)
Hint: you can use the procedures in (gnu services configuration)
to define this predicate with (list-of exact-integer?).
> + (disable-des?
> + (boolean #f)
> + "Disable all DES encryption types."))
I'd avoid the double negative here, i.e. by naming this enable-des?.
Another note, how about defaulting to disabled DES support
to discourage its use?
> + (start #~(make-forkexec-constructor
> + (list #$(file-append heimdal "/libexec/kdc")
> + #$@(if (maybe-value-set? config-file)
> + `(,(string-append "--config-file=" (maybe-value config-file)))
> + '())
Simply do:
`(,(string-append "--config-file=" config-file))
You don't need to use 'maybe-value' to extract the value if
you've already tested it with 'maybe-value-set?'.
> + #:log-file "/var/log/kdc-shepherd"))
I'd make this configurable in <heimdal-kdc-configuration>.
> + (ports
> + (list-of-strings '())
> + "Ports to listen on."))
See (*).
> +;;; GNU Guix --- Functional package management for GNU
> +;;; Copyright © 2017 Peter Mikkelsen <petermikkelsen10@gmail.com>
> +;;; Copyright © 2022 Bruno Victal <mirai@makinata.eu>
Copy-paste leftovers perhaps? 😅
> new file mode 100644
> index 0000000000..b6424ace9e
> --- /dev/null
> +++ b/gnu/tests/heimdal-kdc.scm
How about merging these tests under a single gnu/tests/krb-heimdal.scm
instead of splitting them as gnu/tests/heimdal-kadmind.scm and
gnu/tests/heimdal-kadmind.scm?
If you're up for it I'd love to see one more test (might
involve multiple VMs) that actually tests the kerberos integration.
(i.e. performs an actual kerberos test)
That way we could be at least sure that there's a working kerberos
setup that we can use as a reference point for documentation/cookbooks.
My 2¢!
--
Furthermore, I consider that nonfree software must be eradicated.
Cheers,
Bruno.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2023-12-16 21:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-01 0:42 [bug#67555] [PATCH 0/2] Add Heimdal Kerberos system services Felix Lechner via Guix-patches via
2023-12-01 0:45 ` [bug#67555] [PATCH 1/2] services: kerberos.scm: Rename krb5-service-type and krb5-configuration Felix Lechner via Guix-patches via
2023-12-01 0:45 ` [bug#67555] [PATCH 2/2] services: kerberos/heimdal.scm: New file, add Heimdal Kerberos services Felix Lechner via Guix-patches via
2023-12-16 21:35 ` Bruno Victal [this message]
2023-12-15 17:01 ` [bug#67555] [PATCH 0/2] Add Heimdal Kerberos system services Jonathan Brielmaier via Guix-patches via
2024-10-31 14:31 ` [bug#67555] " Steve George
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=938be86c-3269-4bb1-b6f9-6e4732d6515d@makinata.eu \
--to=mirai@makinata.eu \
--cc=67555@debbugs.gnu.org \
--cc=felix.lechner@lease-up.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).