Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qZFfi-004k28-Vk for pgsql-general@arkaria.postgresql.org; Thu, 24 Aug 2023 19:07:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qZFfh-00Bysl-Oz for pgsql-general@arkaria.postgresql.org; Thu, 24 Aug 2023 19:07:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qZFfg-00Bymy-Ll for pgsql-general@lists.postgresql.org; Thu, 24 Aug 2023 19:07:09 +0000 Received: from tamriel.snowman.net ([70.109.60.50]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qZFfb-000l5E-PZ for pgsql-general@lists.postgresql.org; Thu, 24 Aug 2023 19:07:07 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 8BCA75F7B7; Thu, 24 Aug 2023 15:06:58 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snowman.net; s=dkim; t=1692904018; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8M13Z0Ks94TBDp1pdIIU9FCK6LjpkcvLcYqRgmztQIo=; b=MKSbuVIAuRRuGUIJidQX22Njd4mYAjOyEuvq9qqZ+bRwwBIy/1+qr9vRiqdXNL+8rf5kaD LA0nmWHJVf4MknqGpW/nEQ+oNHb2q9QFf1j0gYtIr8xKB5XYh/+To6FDxddRVv3XzVfIZZ 0aCEHAhUNTrOnHZNyBafiNTX7AAY4TQ= Date: Thu, 24 Aug 2023 15:06:58 -0400 From: Stephen Frost To: Emile Amewoto Cc: Roger Tannous , pgsql-general@lists.postgresql.org Subject: Re: LDAP Authentication Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="YTqJ0J8z7fYe+kcN" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.1.4 (2021-12-11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --YTqJ0J8z7fYe+kcN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Emile Amewoto (emileam@yahoo.com) wrote: > Here is the high level process: > 1- Create the user x without password in Postgres. > 2- Assign role or roles to the user x > 3- Update pg_hba.conf with the ldap connection link. >=20 > You might need cert for the ldap to connect to AD, assuming you are using= AD. If you're using AD, you should *really* be using Kerberos/gssapi for your authentication and *not* LDAP. LDAP is insecure as it involves passing around the user's credentials which is extremely bad practice and is strongly discouraged. LDAP auth also involves in-line round trips to the LDAP server which can delay or even fail database connections in the event that the LDAP server is even temporarily unavailable. Thanks, Stephen --YTqJ0J8z7fYe+kcN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEwf6gbxKhD863zrx/7WyKOINHZFUFAmTnqlAACgkQ7WyKOINH ZFX/Ww/9FYD7OVIezZh0cNkngf+JbEvjavjfjd2lV8E6MB+k+oOXmo4squJNl2oM b+jCfpaXz/iT0jfHnOdAoa4mm3PniSATjC8lg86G3UTTmM5GEV8FhnYJIx25z7gd 5w3O8Wi4dZi/pHfYEaCO8vnBxZ/dIMbqzIYB32d4epFqWVIxPH/3tjXsuI60OIjM wQCbXUHWwqBE1vX0WgffnGyQWjnzoP7/JArFofkw/MXE0tssWluiEFUOLdISF/Nf tshii7h9fB62ylBgfEL6odQJuerl1vHUdc7Lv+cOxCBpCpTNhH+J0crnRJr0OXOe bS8lUY966mzLZWSItY25qaRXHZJkSUgyV8Ih4Z0e+02JTn8VJp5cITXyDcL9CjVn K1FrM0ll0FtSACsMoO8264iJpJf5CVJCEHzgCDRoFelGgudGkzkF59p87ePQz+l1 BxtXJeeVHlGowv8ID2t46BqFegykh1Es2yR1+62QT/R+0zkJHYz1SIKzLsvBcors zFhFgEX1f0dWODiarEnnixulBrG8Fg6JOh9DWfb+A1AKaFuv+2J/5lOesJWhaUKB fhOQWwNnGH7BRMR0xEitk8s2vLZN6IvdrKTYtB/zmufA8kM6ESXPjh7BxvDAfVw4 J19BIpxFnqzya29sty3HiJmt/viVaGKb4zu6qEg257710DkTY6Y= =HmD/ -----END PGP SIGNATURE----- --YTqJ0J8z7fYe+kcN--