Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYvEG-0005cB-MA for pgsql-general@arkaria.postgresql.org; Fri, 08 Oct 2021 19:08:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mYvEF-0006Jl-2O for pgsql-general@arkaria.postgresql.org; Fri, 08 Oct 2021 19:08:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYvEE-0006Jc-P2 for pgsql-general@lists.postgresql.org; Fri, 08 Oct 2021 19:08:22 +0000 Received: from tamriel.snowman.net ([70.109.60.50]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mYvEC-0006As-D4 for pgsql-general@postgresql.org; Fri, 08 Oct 2021 19:08:21 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 7F0E25F798; Fri, 8 Oct 2021 15:08:19 -0400 (EDT) Date: Fri, 8 Oct 2021 15:08:19 -0400 From: Stephen Frost To: Keith Brown Cc: pgsql-general@postgresql.org Subject: Re: LDAP authorization with postgresql Message-ID: <20211008190819.GW20998@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KSdtjhIkTRrb1Xsv" 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: Archived-At: Precedence: bulk --KSdtjhIkTRrb1Xsv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Greetings, * Keith Brown (keith6014@gmail.com) wrote: > I use GSS for authentication. But I would like to setup LDAP based > authorization, so a user can have access to a particular > database/role/etc...I found documentation on how to setup LDAP but > don't really see any examples for what I am trying to do. Any > suggestions? You probably want to look into a tool to sync your LDAP directory group membership with roles in PG. eg: https://github.com/larskanis/pg-ldap-sync (Glad to hear you're using GSS for authentication!) Thanks, Stephen --KSdtjhIkTRrb1Xsv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJhYJciAAoJEO1sijiDR2RVgLQP/242bBa7+hKVYJj8PnjyhMTO uNS4COCm2o8NfeYi8obU+ykbhZDbQGuCT14MDamldFGKHAFfRh5V6MEg5KwoA7ut ok24397lIR+XY7dfSZTQachrDwQPaUVQ1BxGCv7d7UKy9ldwz9m++hmF2BOz8ExF muWgZTh7XejeXMD/YDGh8izlJ32mQ/QlY/Q2uKcuMlRNDPQmzOlQCSDvwdgToNcK wPccsXWjP0TfWL2gdp0O0hifGLNk4nGlTWFYsEFTEyE9jcIGj//pVqBQGkN1Mcu9 UicZldFvZr+yCF1ix2V11gYdoPTLlUdBQxB1ItIC2UTvBjU/iZdN9/bXwj4Gi9o8 hkbB70Fb+ObJxizr3/eB+QX8sXljFC927EiyUSa/3mZAsaROTtl5n/7lTMRkSueU hFrfVlpNyLjZqgz1A1qN0Ztcfe2RmWwQ4ptYSJpvZAt9p5Du0yxgyTlp72EYWbt9 7D0xBpOYOCiFGVvxkK6bU8re7sAV0aQuFOEEIP2aVBg30aLFwEgFYeyf/worceUB dEIhAQ3ACNnCXSF3KE+XlHmeQnuWURIdwywjA5VRZBNZbhwWM9hEJlVeK/1lOzx3 xrJBwTuGMeW+cnoHOg4YG2JbjBMUCphfZ8DBk8FOrlp3+Rsd29olC2I9dEmayUd7 yx0N9lg7btZGDuRx87dR =ZDyG -----END PGP SIGNATURE----- --KSdtjhIkTRrb1Xsv--