From owner-freebsd-questions@freebsd.org Sun Mar 15 06:12:28 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C07A1259178 for ; Sun, 15 Mar 2020 06:12:28 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48g8Gz3TnYz3Cwb for ; Sun, 15 Mar 2020 06:12:27 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=swl8SIChB9haFPX16Uk9Rf1RW9QrJupP5QWrZWovnFk=; b=PiOzMGThWLh3ObplxX5v0jfC6k JCfhsiVvRaI+kP3Kq7HofUif6HPUqiXg/Dg1f47oa+jKMgYiHm6aRE8A96JqviUg/vhgvSVI305uk opA1YNNMSEBbFG5FMsr4+lConQk1z4A9vz5RESq131oQk8CrEDUtxWHpokXI8qOT5uEQ=; Received: from vas by admin.sibptus.ru with local (Exim 4.93.0.4 (FreeBSD)) (envelope-from ) id 1jDMVe-000GqR-3L for freebsd-questions@freebsd.org; Sun, 15 Mar 2020 13:12:26 +0700 Date: Sun, 15 Mar 2020 13:12:26 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: Centralized user/group/whatever management Message-ID: <20200315061226.GB64075@admin.sibptus.ru> References: <20200313091923.GA98495@admin.sibptus.ru> <2F4CA1FD-FB90-4B2E-A2C3-9C009A67A5EE@theory14.net> <20200314055541.GF27346@admin.sibptus.ru> <41ff5211-2ec5-d027-bb12-183afc4ad397@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9zSXsLTf0vkW971A" Content-Disposition: inline In-Reply-To: <41ff5211-2ec5-d027-bb12-183afc4ad397@FreeBSD.org> X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 X-Rspamd-Queue-Id: 48g8Gz3TnYz3Cwb X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=PiOzMGTh; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-8.44 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.991,0]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-3.35)[ip: (-9.88), ipnet: 2001:19f0:5000::/38(-4.94), asn: 20473(-1.87), country: US(-0.05)]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Mar 2020 06:12:28 -0000 --9zSXsLTf0vkW971A Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Matthew Seaman wrote: > On 14/03/2020 05:55, Victor Sudakov wrote: > > There is one missing link which was never mentioned in the thread. > > What's the bridge between nsswitch framework (or some other replacement > > of getpwent(), getgrent() and friends) to be used with all those LDAP > > solutions mentioned above? > >=20 >=20 > You generally need to install pluggable modules for both PAM and NSS. > There are several alternatives in the ports, but I like: >=20 > net/nss-pam-ldapd Do you personally use it? You said you like it, so probably it's OK for production? >=20 > Another important component is a lookup cache -- going out to a remote > LDAP server every time you type 'ls -l' would be unusably slow. So be > sure to enable the name service cache daemon nscd(8) which is part of > the base system. >=20 > Various other system services can make use of LDAP -- for instance, > sudo(8). These you'ld have to configure separately though. Thanks a lot for you response with very useful information.=20 >=20 > That's where things like FreeIPA come in: it's a pre-packaged setup with > all the stuff you hadn't realized you needed yet already dealt with. > Like using LDAP to handle SSH authorized_keys through the > sss_ssh_authorizedkeys command from security/sssd. security/sssd is > another provider of the PAM and NSS plugable modules so you would use it > instead of net/nss-pam-ldapd I looked briefly at security/sssd but found it having too many dependencies. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --9zSXsLTf0vkW971A Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJebcdKAAoJEA2k8lmbXsY0c10IAKeTbbYXaO5EDM/mhaILzdTu 589pUybrYQnCvDVeXGfpmmYlsJBslkYatSCSp7vcVBt2Cuh7E0HrQz9VhOiZ5WA3 YVr1UZymvjs3lYUgzbA0kBkCa1E5abOTcxTXZwQMC5CGBMp6VsDWCvTWZclj9eRF IuT5cMI/zZK16BHHAk6jdyrxl7wfItRy2urfEx6NQdwQxaGrWv0kxhhpGc8XJpvU 0uOjNutQT3vGZ4lcnhsHI7EDWiHacA4ZhD5b5Lvfb+xDbhyrbKPJ4XSvUhbCF1vl XSbcbni5yKs8FVuWJCXDQEjNQsoOIWarX0ozquqGVKiU60vmmnY/E8ue+aQSubg= =IFvI -----END PGP SIGNATURE----- --9zSXsLTf0vkW971A--