unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludovic.courtes@inria.fr>
To: <guix-devel@gnu.org>
Subject: Supporting sssd, preparing for nscd sunset
Date: Fri, 23 Feb 2024 09:48:37 +0100	[thread overview]
Message-ID: <87sf1jh8gq.fsf@inria.fr> (raw)

Hello Guix!

Distros are increasingly relying on sssd, in particular Fedora and
derivatives, as a replacement for nscd, which is either unavailable or
deprecated.  The documented interface of Guix binaries to the host’s
name service switch (NSS) is currently nscd:

  https://guix.gnu.org/manual/en/html_node/Application-Setup.html#Name-Service-Switch

So it sounds like we’ll have to do something about it.

In <https://lists.gnu.org/archive/html/guix-devel/2020-08/msg00168.html>
I showed a workaround in cases where you cannot install nscd on the
machine, but we’ll need something that works out of the box.

Fellow NixOS hackers have been developing an nscd replacement
(implementing the same protocol, just not caching lookups):

  https://alternativebit.fr/posts/nixos/nsncd-some-updates/

The solution would be interesting for use on Guix System if and when
nscd is removed from glibc, but I don’t see it helpful on other distros,
at least not until/unless it becomes widespread.  (We can’t really ship
ourselves because it has to be linked against the host libc.)

For the record, glibc maintainer Carlos O’Donell brought up our use case
a while back on the glibc mailing list but it wasn’t particularly well
received:

  https://sourceware.org/pipermail/libc-alpha/2022-February/136741.html

I’m not sure where to go from here.  Long-term we probably need to
ensure a (non-caching) nscd remains part of glibc, and that glibc’s
client stubs can still talk that protocol; or perhaps nsncd will
gradually replace nscd, which is fine too.  If sssd becomes dominant, we
might just as well arrange to have NSS always load libnss_sss.so.

Thoughts?

Ludo’.


             reply	other threads:[~2024-02-23  8:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-23  8:48 Ludovic Courtès [this message]
2024-02-23 15:03 ` Supporting sssd, preparing for nscd sunset Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-02-23 21:48 ` Ricardo Wurmus
2024-02-24  8:26 ` Picnoir
2024-03-05  9:46   ` Ludovic Courtès
2024-03-05 12:34     ` Picnoir
2024-02-24 19:10 ` Maxim Cournoyer
2024-03-05  9:55   ` Ludovic Courtès

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=87sf1jh8gq.fsf@inria.fr \
    --to=ludovic.courtes@inria.fr \
    --cc=guix-devel@gnu.org \
    /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).