pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: ciaranrh@gmail.com
Subject: BUG #16399: Ldap authentication bug
Date: Tue, 28 Apr 2020 23:09:20 +0000
Message-ID: <16399-dc29bf26ef0563c1@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      16399
Logged by:          Ciaran
Email address:      ciaranrh@gmail.com
PostgreSQL version: 10.12
Operating system:   Windows Server 2012
Description:        

Hello,

Follow the documentation here:
https://www.postgresql.org/docs/10/auth-methods.html#AUTH-LDAP I'm
attempting to enable LDAP authentication on my postgres database. 

The relevant line for my testing this in my pg_hba.conf file is as
follows:
host 	all 		ciaranh 	0.0.0.0/0 		ldap
ldapurl="ldap://<DC>/OU=IT,DC=CNFLTD,DC=COM?sAMAccountName?one"
#ldapbinddn="CN=Postgres Bind, OU=Service Accounts, DC=CNFLTD, DC=COM"
ldapbindpasswd="cnfP@ssw0rd"

I receive the following error when trying to start the postgres service:
2020-04-28 16:00:02.619 PDT [4704] LOG:  authentication method "ldap"
requires argument "ldapserver" to be set
2020-04-28 16:00:02.619 PDT [4704] CONTEXT:  line 79 of configuration file
"C:/Program Files/PostgreSQL/10/data/pg_hba.conf"
2020-04-28 16:00:02.619 PDT [4704] FATAL:  could not load pg_hba.conf

I do not understand why the ldapserver need be set if it's specified in the
ldapurl field, this seems like a bug to me.



view thread (2+ messages)  latest in thread

Message-ID: <16399-dc29bf26ef0563c1@postgresql.org>
Permalink:  ../16399-dc29bf26ef0563c1@postgresql.org/
Also on:    postgresql.org/message-id/16399-dc29bf26ef0563c1@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, ciaranrh@gmail.com
  Subject: Re: BUG #16399: Ldap authentication bug
  In-Reply-To: <16399-dc29bf26ef0563c1@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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