From: Stephen Frost <sfrost@snowman.net>
To: k.yudhveer@gmail.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16066: Ldap Authentication failure on PostgreSQL 10.10
Date: Fri, 18 Oct 2019 19:12:23 -0400
Message-ID: <20191018231223.GE6962@tamriel.snowman.net> (raw)
In-Reply-To: <16066-446841bca15fabc0@postgresql.org>
References: <16066-446841bca15fabc0@postgresql.org>
Greetings,
* PG Bug reporting form (noreply@postgresql.org) wrote:
> host Tom Tom 10.10.117.43/32 ldap
> ldapserver=10.10.117.43 ldapbasedn="ou=People,dc=internal,dc=g2llc"
> ldapbinddn="cn=svc_ldap,ou=People,dc=internal,dc=g2llc"
> ldapbindpasswd="Test123#" ldapport=389 ldapsearchattribute="uid"
>
> When I am trying to connect to postgresql on remote server, I am getting the
> message as no entry for "Tom" in pg_hba.conf file where the postgresql is
> running on the remote server.
>
> Already created the user "Tom" in postgresql and also created the user "Tom"
> in ldap and also created one more ldap user account "i.e., svc_ldap" in
> ldap.
>
> Not Sure..what else I need to configure to make the Postgresql user to
> authenticate with ldap
This isn't a bug, and we've already pointed out that you need to make
sure that the IP in the pg_hba.conf is the one the client is connecting
from. It's not the LDAP server. Also, as mentioned, you'd really be
better off using GSSAPI authentication with Active Directory, using LDAP
isn't nearly as secure, nor is it a good practice.
Thanks,
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: sfrost@snowman.net, k.yudhveer@gmail.com
Subject: Re: BUG #16066: Ldap Authentication failure on PostgreSQL 10.10
In-Reply-To: <20191018231223.GE6962@tamriel.snowman.net>
References: <16066-446841bca15fabc0@postgresql.org> <20191018231223.GE6962@tamriel.snowman.net>
* 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