pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #16064: Ldap Authentication failing with pg_hba.conf entry
4+ messages / 4 participants
[nested] [flat]
* BUG #16064: Ldap Authentication failing with pg_hba.conf entry
@ 2019-10-17 17:58 PG Bug reporting form <noreply@postgresql.org>
0 siblings, 2 replies; 4+ messages in thread
From: PG Bug reporting form @ 2019-10-17 17:58 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: k.yudhveer@gmail.com
The following bug has been logged on the website:
Bug reference: 16064
Logged by: Yudhveer Kandukuri
Email address: k.yudhveer@gmail.com
PostgreSQL version: 10.10
Operating system: Ubuntu 18.04
Description:
Can any one please guide me what is the issue with my ldap authentication on
Postgresql 10.10. Here is the Entry for ldap in pg_hba.conf file
host all all XX.XX.XXX.XX/32 ldap
ldapserver=XX.XX.XXX.XX ldapbasedn="ou=People,dc=internal,dc=com"
ldapbinddn="cn=Tom,ou=People,dc=internal,dc=com" ldapbindpasswd="Test123#"
ldapport=389
I created the same user "Tom" in the Postgres database too . Also created
the User "Tom" other user "svc-ldap" in active directory too.
When I am trying to connect to PostgreSQL server from other remote server,
the authentication is failing with
psql: FATAL: no pg_hba.conf entry for host "XXX.XX.XXX.XXX", user "Tom",
database "Tom", SSL off
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #16064: Ldap Authentication failing with pg_hba.conf entry
@ 2019-10-17 21:54 Stephen Frost <sfrost@snowman.net>
parent: PG Bug reporting form <noreply@postgresql.org>
1 sibling, 0 replies; 4+ messages in thread
From: Stephen Frost @ 2019-10-17 21:54 UTC (permalink / raw)
To: k.yudhveer@gmail.com; pgsql-bugs@lists.postgresql.org
Greetings,
* PG Bug reporting form (noreply@postgresql.org) wrote:
> Can any one please guide me what is the issue with my ldap authentication on
> Postgresql 10.10. Here is the Entry for ldap in pg_hba.conf file
>
> host all all XX.XX.XXX.XX/32 ldap
> ldapserver=XX.XX.XXX.XX ldapbasedn="ou=People,dc=internal,dc=com"
> ldapbinddn="cn=Tom,ou=People,dc=internal,dc=com" ldapbindpasswd="Test123#"
> ldapport=389
>
> I created the same user "Tom" in the Postgres database too . Also created
> the User "Tom" other user "svc-ldap" in active directory too.
>
> When I am trying to connect to PostgreSQL server from other remote server,
> the authentication is failing with
>
> psql: FATAL: no pg_hba.conf entry for host "XXX.XX.XXX.XXX", user "Tom",
> database "Tom", SSL off
Unfortunately, you haven't provided what the specific IP addresses are,
but it looks like perhaps they don't match...? Note that when you
specify a '/32', the IP address in the pg_hba.conf must match EXACTLY
the IP address that the connection attempt is coming from.
All that said, you mention that you're using Active Directory, which
itself actually uses Kerberos for authentication- not LDAP, and
PostgreSQL directly supports Kerberos authentication through GSSAPI. I
strongly encourage you to look into use GSSAPI instead, it's much more
secure than using LDAP-based auth and avoids the user's password being
sent to the PostgreSQL server (where it could be compromised if the PG
process is compromised).
Thanks,
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #16064: Ldap Authentication failing with pg_hba.conf entry
@ 2019-10-17 23:16 Jeff Janes <jeff.janes@gmail.com>
parent: PG Bug reporting form <noreply@postgresql.org>
1 sibling, 1 reply; 4+ messages in thread
From: Jeff Janes @ 2019-10-17 23:16 UTC (permalink / raw)
To: PG Bug reporting form <noreply@postgresql.org>; +Cc: pgsql-bugs <pgsql-bugs@lists.postgresql.org>; k.yudhveer@gmail.com
On Thu, Oct 17, 2019 at 1:59 PM PG Bug reporting form <
noreply@postgresql.org> wrote:
> The following bug has been logged on the website:
>
> Bug reference: 16064
> Logged by: Yudhveer Kandukuri
> Email address: k.yudhveer@gmail.com
> PostgreSQL version: 10.10
> Operating system: Ubuntu 18.04
> Description:
>
> Can any one please guide me what is the issue with my ldap authentication
> on
> Postgresql 10.10. Here is the Entry for ldap in pg_hba.conf file
>
> host all all XX.XX.XXX.XX/32 ldap
> ldapserver=XX.XX.XXX.XX ldapbasedn="ou=People,dc=internal,dc=com"
> ldapbinddn="cn=Tom,ou=People,dc=internal,dc=com" ldapbindpasswd="Test123#"
> ldapport=389
>
> I created the same user "Tom" in the Postgres database too . Also created
> the User "Tom" other user "svc-ldap" in active directory too.
>
> When I am trying to connect to PostgreSQL server from other remote server,
> the authentication is failing with
>
> psql: FATAL: no pg_hba.conf entry for host "XXX.XX.XXX.XXX", user "Tom",
> database "Tom", SSL off
>
>
Just by counting the placeholders, we know that XX.XX.XXX.XX cannot be the
same thing as XXX.XX.XXX.XXX.
Cheers,
Jeff
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #16064: Ldap Authentication failing with pg_hba.conf entry
@ 2019-10-18 00:34 Yudhveer Kandukuri <k.yudhveer@gmail.com>
parent: Jeff Janes <jeff.janes@gmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: Yudhveer Kandukuri @ 2019-10-18 00:34 UTC (permalink / raw)
To: Jeff Janes <jeff.janes@gmail.com>; +Cc: PG Bug reporting form <noreply@postgresql.org>; pgsql-bugs <pgsql-bugs@lists.postgresql.org>
Hi all,
Here are the full details
host all all 10.10.117.43/32 ldap
ldapserver=10.10.117.43 ldapbasedn="ou=People,dc=internal,dc=com"
ldapbinddn="cn=Tom,ou=People,dc=internal,dc=com" ldapbindpasswd="Test123#"
ldapport=389
Thanks and regards
Yudhveer Kandukuri
On Thu, Oct 17, 2019 at 4:16 PM Jeff Janes <jeff.janes@gmail.com> wrote:
> On Thu, Oct 17, 2019 at 1:59 PM PG Bug reporting form <
> noreply@postgresql.org> wrote:
>
>> The following bug has been logged on the website:
>>
>> Bug reference: 16064
>> Logged by: Yudhveer Kandukuri
>> Email address: k.yudhveer@gmail.com
>> PostgreSQL version: 10.10
>> Operating system: Ubuntu 18.04
>> Description:
>>
>> Can any one please guide me what is the issue with my ldap authentication
>> on
>> Postgresql 10.10. Here is the Entry for ldap in pg_hba.conf file
>>
>> host all all XX.XX.XXX.XX/32 ldap
>> ldapserver=XX.XX.XXX.XX ldapbasedn="ou=People,dc=internal,dc=com"
>> ldapbinddn="cn=Tom,ou=People,dc=internal,dc=com" ldapbindpasswd="Test123#"
>> ldapport=389
>>
>> I created the same user "Tom" in the Postgres database too . Also created
>> the User "Tom" other user "svc-ldap" in active directory too.
>>
>> When I am trying to connect to PostgreSQL server from other remote server,
>> the authentication is failing with
>>
>> psql: FATAL: no pg_hba.conf entry for host "XXX.XX.XXX.XXX", user "Tom",
>> database "Tom", SSL off
>>
>>
>
> Just by counting the placeholders, we know that XX.XX.XXX.XX cannot be
> the same thing as XXX.XX.XXX.XXX.
>
> Cheers,
>
> Jeff
>
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2019-10-18 00:34 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-10-17 17:58 BUG #16064: Ldap Authentication failing with pg_hba.conf entry PG Bug reporting form <noreply@postgresql.org>
2019-10-17 21:54 ` Stephen Frost <sfrost@snowman.net>
2019-10-17 23:16 ` Jeff Janes <jeff.janes@gmail.com>
2019-10-18 00:34 ` Yudhveer Kandukuri <k.yudhveer@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