Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 8F6061337B78 for ; Thu, 28 Oct 2010 12:40:02 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 35568-10 for ; Thu, 28 Oct 2010 15:39:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from bay0-omc1-s4.bay0.hotmail.com (bay0-omc1-s4.bay0.hotmail.com [65.54.190.15]) by mail.postgresql.org (Postfix) with ESMTP id 0F84A1337B66 for ; Thu, 28 Oct 2010 12:39:54 -0300 (ADT) Received: from BAY149-W57 ([65.54.190.61]) by bay0-omc1-s4.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 28 Oct 2010 08:39:53 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_2e189b6a-6020-4bfd-86ef-a4b0233d79ae_" X-Originating-IP: [91.206.0.43] From: Kieren Scott To: Subject: Re: Using LDAP with postgresql 8.2 Date: Thu, 28 Oct 2010 15:39:53 +0000 Importance: Normal In-Reply-To: References: MIME-Version: 1.0 X-OriginalArrivalTime: 28 Oct 2010 15:39:53.0574 (UTC) FILETIME=[5D8B8060:01CB76B6] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.909 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/206 X-Sequence-Number: 35947 --_2e189b6a-6020-4bfd-86ef-a4b0233d79ae_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C 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 a= n entry for user pgtest. host all pgtest xx.xxx.x.x/xx ldap "ldap://server.mydomain.com:= 389/basedn=3Bcn=3D=3B=2Cou=3Dusers group=2Cdc=3Dmydomain=2Cdc=3Dcom" I have restarted the PG server but when I try to connect via psql from anot= her host=2C I get the following error: - 2010-10-28 16:30:36 BST [1095]: [2-1] FATAL: LDAP authentication failed fo= r user "pgtest" 2010-10-28 16:30:36 BST [1096]: [1-1] LOG: LDAP login failed for user "cn= =3Dpgtest=2Cou=3Dusers group=2Cdc=3Dmydomain=2Cdc=3Dcom" on server "server.= mydomain.com": error code 49 So it looks like the cn=2C ou and dc parameters are correct=2C but for some= reason Openldap is returning error 49=2C which is a generic authentication= failure message. Can anyone suggest anything that I might be doing wrong? Could it be the li= ne in pg_hba.conf that is wrong=2C or possibly the ldap package on the serv= er (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=2C 27 Oct 2010 17:57:32 +0000 Hi=2C I'm looking to implement LDAP authentication againt Active Directory for my= =20 Postgresql databases. What's people experiences of using LDAP for authentic= ating logins with AD? Is it easy to setup and is there anything to watch out for e.g. does Postgr= esql do anything=20 intrusive on Active Directory (create anything) or does it just simply bind= to AD=2C validate the=20 username/password pair and return success/failure back to the client? Many thanks! = --_2e189b6a-6020-4bfd-86ef-a4b0233d79ae_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C

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

host =3B =3B all = =3B =3B pgtest =3B =3B =3B xx.xxx.x.x/xx  =3B =3B&n= bsp=3B =3B ldap "ldap://server.mydomain.com:389/basedn=3Bcn=3D=3B=2Cou= =3Dusers group=2Cdc=3Dmydomain=2Cdc=3Dcom"

I have restarted the PG s= erver but when I try to connect via psql from another host=2C I get the fol= lowing error: -

2010-10-28 16:30:36 BST [1095]: [2-1] FATAL: =3B= LDAP authentication failed for user "pgtest"
2010-10-28 16:30:36 BST [1= 096]: [1-1] LOG: =3B LDAP login failed for user "cn=3Dpgtest=2Cou=3Duse= rs group=2Cdc=3Dmydomain=2Cdc=3Dcom" on server "server.mydomain.com": error= code 49

So it looks like the cn=2C ou and dc parameters are correct= =2C but for some reason Openldap is returning error 49=2C which is a generi= c 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=2C= or possibly the ldap package on the server (debian linux) not working
&= nbsp=3Bproperly?

Any ideas much appreciated!



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

Hi=2C

I'm looking to implement LDAP authentication againt Active Dir= ectory 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 o= n Active Directory (create anything) or does it just simply bind to AD=2C v= alidate the
username/password pair and return success/failure back to t= he client?

Many thanks!
= --_2e189b6a-6020-4bfd-86ef-a4b0233d79ae_--