public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* Howto determine a shared/network source of users and groups is active?
@ 2022-09-22 13:40 Stef Bon
  2022-09-23  5:14 ` Florian Weimer
  0 siblings, 1 reply; 5+ messages in thread
From: Stef Bon @ 2022-09-22 13:40 UTC (permalink / raw)
  To: libc-help

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-05 17:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-22 13:40 Howto determine a shared/network source of users and groups is active? Stef Bon
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

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).