pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
LDAP(s) doc misleading
5+ messages / 3 participants
[nested] [flat]

* LDAP(s) doc misleading
@ 2021-01-06 07:35 Paul Förster <paul.foerster@gmail.com>
  2021-01-06 17:14 ` Re: LDAP(s) doc misleading Stephen Frost <sfrost@snowman.net>
  2021-01-07 10:04 ` Re: LDAP(s) doc misleading Magnus Hagander <magnus@hagander.net>
  0 siblings, 2 replies; 5+ messages in thread

From: Paul Förster @ 2021-01-06 07:35 UTC (permalink / raw)
  To: pgsql-general

Hi,

I found what I believe to be misleading in the LDAP documentation:

https://www.postgresql.org/docs/current/auth-ldap.html

It says:
"ldapscheme
Set to ldaps to use LDAPS."...

IMHO, it should say:
"ldapscheme
Set to ldapscheme to use LDAPS (ldapscheme=ldaps)."...

I found this because I'm in the process of making our Linux LDAP servers obsolete by reconfiguring PostgreSQL to use our company Windows Active Directory LDAPS service.

Cheers,
Paul




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

* Re: LDAP(s) doc misleading
  2021-01-06 07:35 LDAP(s) doc misleading Paul Förster <paul.foerster@gmail.com>
@ 2021-01-06 17:14 ` Stephen Frost <sfrost@snowman.net>
  2021-01-07 09:45   ` Re: LDAP(s) doc misleading Paul Förster <paul.foerster@gmail.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Stephen Frost @ 2021-01-06 17:14 UTC (permalink / raw)
  To: Paul Förster <paul.foerster@gmail.com>; +Cc: pgsql-general

Greetings,

* Paul Förster (paul.foerster@gmail.com) wrote:
> I found this because I'm in the process of making our Linux LDAP servers obsolete by reconfiguring PostgreSQL to use our company Windows Active Directory LDAPS service.

When in an Active Directory environment, it's far more secure to use
Kerberos/GSSAPI and not LDAP (or LDAPS).  Using the ldap authentication
method with PostgreSQL will result in the credentials of users being
sent to the database server, such that if the database server is
compromised so will all of those user accounts.

Thanks,

Stephen

Attachments:

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

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

* Re: LDAP(s) doc misleading
  2021-01-06 07:35 LDAP(s) doc misleading Paul Förster <paul.foerster@gmail.com>
  2021-01-06 17:14 ` Re: LDAP(s) doc misleading Stephen Frost <sfrost@snowman.net>
@ 2021-01-07 09:45   ` Paul Förster <paul.foerster@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Paul Förster @ 2021-01-07 09:45 UTC (permalink / raw)
  To: Stephen Frost <sfrost@snowman.net>; +Cc: pgsql-general

Hi Stephen,

> On 06. Jan, 2021, at 18:14, Stephen Frost <sfrost@snowman.net> wrote:
> 
> When in an Active Directory environment, it's far more secure to use
> Kerberos/GSSAPI and not LDAP (or LDAPS).  Using the ldap authentication
> method with PostgreSQL will result in the credentials of users being
> sent to the database server, such that if the database server is
> compromised so will all of those user accounts.

I understand. But users can't login on the database server, just on the database. Database servers and client machines are located in different network zones with firewalls between them.

Also, my point was not about using LDAP(S) versus Kerberos or GSSAPI. My point was, that I find the description of the ldapscheme entry misleading.

Cheers,
Paul




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

* Re: LDAP(s) doc misleading
  2021-01-06 07:35 LDAP(s) doc misleading Paul Förster <paul.foerster@gmail.com>
@ 2021-01-07 10:04 ` Magnus Hagander <magnus@hagander.net>
  2021-01-07 10:29   ` Re: LDAP(s) doc misleading Paul Förster <paul.foerster@gmail.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Magnus Hagander @ 2021-01-07 10:04 UTC (permalink / raw)
  To: Paul Förster <paul.foerster@gmail.com>; +Cc: pgsql-general

On Wed, Jan 6, 2021 at 8:36 AM Paul Förster <paul.foerster@gmail.com> wrote:
>
> Hi,
>
> I found what I believe to be misleading in the LDAP documentation:
>
> https://www.postgresql.org/docs/current/auth-ldap.html
>
> It says:
> "ldapscheme
> Set to ldaps to use LDAPS."...
>
> IMHO, it should say:
> "ldapscheme
> Set to ldapscheme to use LDAPS (ldapscheme=ldaps)."...

No, I think this is correct.

"Set to ldaps to use ldaps" means you set it to the value "ldaps" in
order to use ldaps.

I think you missed the "to" in the sentence -- without that one, your
reading of it would make more sense. See also the following parameter,
ldaptls, which uses similar language.

-- 
 Magnus Hagander
 Me: https://www.hagander.net/
 Work: https://www.redpill-linpro.com/





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

* Re: LDAP(s) doc misleading
  2021-01-06 07:35 LDAP(s) doc misleading Paul Förster <paul.foerster@gmail.com>
  2021-01-07 10:04 ` Re: LDAP(s) doc misleading Magnus Hagander <magnus@hagander.net>
@ 2021-01-07 10:29   ` Paul Förster <paul.foerster@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Paul Förster @ 2021-01-07 10:29 UTC (permalink / raw)
  To: Magnus Hagander <magnus@hagander.net>; +Cc: pgsql-general

Hi Magnus,

> On 07. Jan, 2021, at 11:04, Magnus Hagander <magnus@hagander.net> wrote:
> 
> No, I think this is correct.
> 
> "Set to ldaps to use ldaps" means you set it to the value "ldaps" in
> order to use ldaps.
> 
> I think you missed the "to" in the sentence -- without that one, your
> reading of it would make more sense. See also the following parameter,
> ldaptls, which uses similar language.

argh! Sorry, my bad. Yes, I missed the "to". :-( Thanks.

Cheers,
Paul





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


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

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-01-06 07:35 LDAP(s) doc misleading Paul Förster <paul.foerster@gmail.com>
2021-01-06 17:14 ` Stephen Frost <sfrost@snowman.net>
2021-01-07 09:45   ` Paul Förster <paul.foerster@gmail.com>
2021-01-07 10:04 ` Magnus Hagander <magnus@hagander.net>
2021-01-07 10:29   ` Paul Förster <paul.foerster@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