public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
From: Stef Bon <stefbon@gmail.com>
To: libc-help@sourceware.org
Subject: Howto determine a shared/network source of users and groups is active?
Date: Thu, 22 Sep 2022 15:40:35 +0200	[thread overview]
Message-ID: <CANXojcwngshK5GsswWLOo8UKX__8eFs7a5bCa9B9RnS3rfL+-g@mail.gmail.com> (raw)

Hi all,

I hope you are all doing ok.

I'm working on a service based on SSH connections and SFTP file transfer.
To make the name and/or id translation work I'm looking for a way the
user and group databases are shared between server and client. If so,
it is very easy.
If not I have to create a mapping.

I can write an utility which
scans every line in /etc/nsswitch.conf and test for words like ldap in
the line starting with passwd: and group: (and also for sss).
If found test it's working and also active on the server.
Maybe you see, this is a lot of work, and testing of all kinds of possibilities.
Is there a simpler way to do that? To get an unique id per user/group
database or something like that.

Thanks in advance,

S.J. Bon

             reply	other threads:[~2022-09-22 13:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-22 13:40 Stef Bon [this message]
2022-09-23  5:14 ` Florian Weimer
2022-09-23  7:18   ` Stef Bon
2022-09-23  7:54     ` Florian Weimer
2022-10-05 17:28       ` Stef Bon

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CANXojcwngshK5GsswWLOo8UKX__8eFs7a5bCa9B9RnS3rfL+-g@mail.gmail.com \
    --to=stefbon@gmail.com \
    --cc=libc-help@sourceware.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.
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).