pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_hba & ldap
2+ messages / 2 participants
[nested] [flat]

* pg_hba & ldap
@ 2019-10-22 12:11 Diego <mrstephenamell@gmail.com>
  2019-10-22 12:43 ` Re: pg_hba & ldap Stephen Frost <sfrost@snowman.net>
  0 siblings, 1 reply; 2+ messages in thread

From: Diego @ 2019-10-22 12:11 UTC (permalink / raw)
  To: pgsql-general

Hi all!

I have a problem with ldap authentication, I have a ldap string like this:

host all             all             0.0.0.0/0 ldap 
ldapserver="10.20.90.251 10.20.90.252 10.10.90.251 10.10.90.252" 
ldapport=389...

It is correct? if the firs server is down, pg will go to the next one to 
continue authenticating?

It's a pg11 and ldap is an ipa server

thanks a lot,

Diego

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

* Re: pg_hba & ldap
  2019-10-22 12:11 pg_hba & ldap Diego <mrstephenamell@gmail.com>
@ 2019-10-22 12:43 ` Stephen Frost <sfrost@snowman.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Stephen Frost @ 2019-10-22 12:43 UTC (permalink / raw)
  To: Diego <mrstephenamell@gmail.com>; +Cc: pgsql-general

Greetings,

* Diego (mrstephenamell@gmail.com) wrote:
> I have a problem with ldap authentication, I have a ldap string like this:
> 
> host all             all             0.0.0.0/0 ldap ldapserver="10.20.90.251
> 10.20.90.252 10.10.90.251 10.10.90.252" ldapport=389...
> 
> 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

Attachments:

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

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


end of thread, other threads:[~2019-10-22 12:43 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-10-22 12:11 pg_hba & ldap Diego <mrstephenamell@gmail.com>
2019-10-22 12:43 ` Stephen Frost <sfrost@snowman.net>

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