pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
LDAP authorization with postgresql
3+ messages / 2 participants
[nested] [flat]

* LDAP authorization with postgresql
@ 2021-10-08 12:56  Keith Brown <keith6014@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Keith Brown @ 2021-10-08 12:56 UTC (permalink / raw)
  To: pgsql-general

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?





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: LDAP authorization with postgresql
@ 2021-10-08 19:08  Stephen Frost <sfrost@snowman.net>
  parent: Keith Brown <keith6014@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Stephen Frost @ 2021-10-08 19:08 UTC (permalink / raw)
  To: Keith Brown <keith6014@gmail.com>; +Cc: pgsql-general

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

Attachments:

  signature.asc (application/pgp-signature, 818B) download

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: LDAP authorization with postgresql
@ 2021-10-08 20:01  Keith Brown <keith6014@gmail.com>
  parent: Stephen Frost <sfrost@snowman.net>
  0 siblings, 0 replies; 3+ messages in thread

From: Keith Brown @ 2021-10-08 20:01 UTC (permalink / raw)
  To: Stephen Frost <sfrost@snowman.net>; +Cc: pgsql-general

Yes, authentication with gss is great. Just authorization story with
postgresql is much harder. Should I even bother with LDAP? instead
just do it manually? I want to avoid another component like
pg-ldap-sync

On Fri, Oct 8, 2021 at 3:08 PM Stephen Frost <sfrost@snowman.net> wrote:
>
> 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





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2021-10-08 20:01 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-10-08 12:56 LDAP authorization with postgresql Keith Brown <keith6014@gmail.com>
2021-10-08 19:08 ` Stephen Frost <sfrost@snowman.net>
2021-10-08 20:01   ` Keith Brown <keith6014@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox