Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iMtVm-0008LC-8h for pgsql-general@arkaria.postgresql.org; Tue, 22 Oct 2019 12:43:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iMtVk-0000ZL-PR for pgsql-general@arkaria.postgresql.org; Tue, 22 Oct 2019 12:43:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iMtVk-0000ZE-G6 for pgsql-general@lists.postgresql.org; Tue, 22 Oct 2019 12:43:40 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iMtVi-0004aT-Kk for pgsql-general@postgresql.org; Tue, 22 Oct 2019 12:43:39 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id EE2635F79F; Tue, 22 Oct 2019 08:43:34 -0400 (EDT) Date: Tue, 22 Oct 2019 08:43:34 -0400 From: Stephen Frost To: Diego Cc: pgsql-general@postgresql.org Subject: Re: pg_hba & ldap Message-ID: <20191022124334.GX6962@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GA93P02KdFLyCc9U" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --GA93P02KdFLyCc9U Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Diego (mrstephenamell@gmail.com) wrote: > I have a problem with ldap authentication, I have a ldap string like this: >=20 > host all=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 all=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 0.0.0.0/0 ldap ldapserver=3D"10.20.90.251 > 10.20.90.252 10.10.90.251 10.10.90.252" ldapport=3D389... >=20 > It is correct? if the firs server is down, pg will go to the next one to > continue authenticating? Yes, that looks like it should work- is it not? > It's a pg11 and ldap is an ipa server Note that with an IPA setup, similar to if you were running Active Directory, you have Kerberos and a KDC available, which is a much better authentication mechanism that removes the need for the database sever to reach out to another system to handle the authentication, and avoids having the user's password sent to the database server. You might want to consider using that (which is called 'gssapi' in PostgreSQL, which is basically generalized Kerberos) instead of LDAP. Thanks, Stephen --GA93P02KdFLyCc9U Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJdrvl2AAoJEO1sijiDR2RVdbcP/2egdi7eal8311KYj8pyQyj4 Il2z67hTEG1euyjD6LbfxP2+saqjTESH2Qv9i7bORbDKIxIF9Da0EAlwqCXLX1vM yvAyqDdVi6tKsiUWL7TLe58X4Dy+PKJzbXonIkwBCP3x4ik8C95VluqjHHIFJz5B 7Tb7AoTqTfMwikxkWJqUAyQkMNEzK/Ov+HgDCexfQAkwEvSH7cIjz1q/al+OBRc6 X2i2duPa8WQouhe1mBas6BaiD8k5IrujEtYsH991pYTmJyBWGS4ddj5qOZwy4d86 A+qUFznb12XN+NcF6oNx1lZwxM5oUU2UFp6snYqmU9/nYiApktKybVdsgTWu2oRz 6Zzs5XYrVNioVv/qlvytMXICZrbH5OCC9xmhNdLE1UYQGIby709Bov5JJ9oxAsdp VXELnET9BIRcA32gOmSPw7TUPDNzD5OuRtVQ7F1wMHTpn/22+7OilhdxclEpDkpU qGrN307wemKslmVL2MuGgLXA4yrJmee/HS/5IC06Z0Ta/hy/P1HSd2DYMvLvnu6q ZspQH3PjGLWBmMnTOH360mYFtmzwfTXyes5SEI9U2KFrNwdjH0cKZs3XpI8Xd+/m ng+qMApecoQYQolB81is9LJc4Lh9+OgMoBjFXl6/i17sn2t/g/AZjSuwbTNBaW+g N9fJ5zlxcy+gdPubSPFe =5Up0 -----END PGP SIGNATURE----- --GA93P02KdFLyCc9U--