pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kieren Scott <kierenscott@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: Using LDAP with postgresql 8.2
Date: Thu, 28 Oct 2010 15:39:53 +0000
Message-ID: <BAY149-w57F0E555A773BECA3918D0AE440@phx.gbl> (raw)
In-Reply-To: <BAY149-w419B9CE7E4E16D7627F24FAE430@phx.gbl>
References: <BAY149-w419B9CE7E4E16D7627F24FAE430@phx.gbl>


Hi,

I've setup LDAP on Postgresql 8.3.6 by adding the following line to pg_hba.conf. My Active Directory has a group called 'users group' which contains an entry for user pgtest.

host   all   pgtest    xx.xxx.x.x/xx      ldap "ldap://server.mydomain.com:389/basedn;cn=;,ou=users group,dc=mydomain,dc=com"

I have restarted the PG server but when I try to connect via psql from another host, I get the following error: -

2010-10-28 16:30:36 BST [1095]: [2-1] FATAL:  LDAP authentication failed for user "pgtest"
2010-10-28 16:30:36 BST [1096]: [1-1] LOG:  LDAP login failed for user "cn=pgtest,ou=users group,dc=mydomain,dc=com" on server "server.mydomain.com": error code 49

So it looks like the cn, ou and dc parameters are correct, but for some reason Openldap is returning error 49, which is a generic authentication failure message.

Can anyone suggest anything that I might be doing wrong? Could it be the line in pg_hba.conf that is wrong, or possibly the ldap package on the server (debian linux) not working
 properly?

Any ideas much appreciated!


From: kierenscott@hotmail.com
To: pgsql-admin@postgresql.org
Subject: Using LDAP with postgresql 8.2
Date: Wed, 27 Oct 2010 17:57:32 +0000








Hi,

I'm looking to implement LDAP authentication againt Active Directory for my 
Postgresql databases. What's people experiences of using LDAP for authenticating logins with AD?
Is it easy to setup and is there anything to watch out for e.g. does Postgresql do anything 
intrusive on Active Directory (create anything) or does it just simply bind to AD, validate the 
username/password pair and return success/failure back to the client?

Many thanks!
 		 	   		  =

view thread (7+ messages)  latest in thread

Message-ID: <BAY149-w57F0E555A773BECA3918D0AE440@phx.gbl>
Permalink:  ../BAY149-w57F0E555A773BECA3918D0AE440@phx.gbl/
Also on:    postgresql.org/message-id/BAY149-w57F0E555A773BECA3918D0AE440@phx.gbl

 · 

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 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-admin@postgresql.org
  Cc: kierenscott@hotmail.com
  Subject: Re: Using LDAP with postgresql 8.2
  In-Reply-To: <BAY149-w57F0E555A773BECA3918D0AE440@phx.gbl>
  References: <BAY149-w419B9CE7E4E16D7627F24FAE430@phx.gbl> <BAY149-w57F0E555A773BECA3918D0AE440@phx.gbl>

* 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