From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by sourceware.org (Postfix) with ESMTPS id B81343858400 for ; Thu, 22 Sep 2022 13:40:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B81343858400 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-x535.google.com with SMTP id e67so3036379pgc.12 for ; Thu, 22 Sep 2022 06:40:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=/t1cqf9FYVJEHE8L7Pp82sECzuAs2WsBD7HrqwLZeuM=; b=hx7bRhOVwPVKW2oElcpODfKttsHCuR/6xj/4zkgutBC+PFxgSkNpICRpqsfZxAgASJ ts9hp/h+uO6NCWjJxWHm9hYS/hJ7TpWUb85+sccFH+oVBdtIfD7SCh5PcgCvUkgaciin 5nN/MzusCkWML7Msm6j02lKMyoFFIpDjSiZuU2BXO5GOvmrOuDOY6PhrEzy6p1a4Ezf3 A/Oyu4/EU+QSNnesoIYv4ZICRJcRBDXUhOVdGj8ftMPJXsX+9GMrZpCpC1H3gkOlf/E7 VFGgaYAEAwjOzYZgiz8T7UP9TttVLozeldte4WIB8QuYWjiojAVCklg1w8vWB6GxvkRi nUKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=/t1cqf9FYVJEHE8L7Pp82sECzuAs2WsBD7HrqwLZeuM=; b=aMCtLVWGJ/8Xlkp9VzUL3j195XCOoeI2Kfy0nxRXN/uyc89Bjj+G6gTdQe7bYxtBlO YjgaiIAjsrK1/LLgTcZrq4OMZVcvpAzXOp0SL6tUul8IzH7kcntVW0SPWo/GKk3Riwg+ mlvtvJ3DAXhEZCkID1C+4ZI4JYXt/iEZCCpFXaW20EPF9OctCpJsmO77SytOW642B9FR n8ZBinSG0C5Wcm7jrxd7CLvnAA5mMJsLh3hYlDk+A0IWXlC+fG1ZY4mdUOH9jjIXvZK6 GpcZuOtD8LYOf6GEA5AburTSSpSBx7bIP7Zl5jb9CCg/KtSN2xhfd/ZEDjzXGjJZ34Ky PpXA== X-Gm-Message-State: ACrzQf2k5NYjjAaF0lPjJMmkw0bEQt9pioaEoF0bKBrMj6PYSFdRYtmf 7tbQExXx2WEt3KUJUiPzeN9PMQMssXTfzgSNbp5yg9U= X-Google-Smtp-Source: AMsMyM65lQpaC3PNm9ys9QGUbbmnvXbT0HOP33vhPV9437eXcOcIKR5jeCEnlD97n8ewRVY7Lf7F7VD6jY1uOUbHExk= X-Received: by 2002:a65:6854:0:b0:438:b1b5:8769 with SMTP id q20-20020a656854000000b00438b1b58769mr3149856pgt.472.1663854047419; Thu, 22 Sep 2022 06:40:47 -0700 (PDT) MIME-Version: 1.0 From: Stef Bon Date: Thu, 22 Sep 2022 15:40:35 +0200 Message-ID: Subject: Howto determine a shared/network source of users and groups is active? To: libc-help@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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