Re: PostgreSQL 9.0 authentication against LDAP/AD

From: "Smith, Hazel" <hazel(dot)smith(at)cromwell(dot)co(dot)uk>
To: "Michael O'Donnell" <odonnellm(at)usgs(dot)gov>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: PostgreSQL 9.0 authentication against LDAP/AD
Date: 2012-08-09 13:12:23
Message-ID: 81976671721DF04B9DCA6ECD87941A4037FADE7C@roundway.Cromwell-tools.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Michael O'Donnell wrote...
>
> I am trying to authenticate PostgreSQL 9.0 login roles against LDAP/Active directory (AD). PostgreSQL 9.0 is installed on a Windows 2008 R2 64bit. My pg_hba.conf setting looks like the following:
>
> host        <db>        <user>        samenet        ldap        ldapserver=<server.domain.net.com> ldapprefix="DOMAIN\"
> I am populating the <db>, <user>, <server.domain.net.com>, and DOMAIN with real values.
>
> When I use the following psql command I get an error:
> C:\Windows\System32>psql -d <db> -U <user> -W
> Password for user <user>:
> psql: FATAL:  password authentication failed for user "<user>"

As far as I can see, that error indicates that it is not even attempting to use LDAP authentication. It would have said "psql: FATAL: LDAP authentication failed for user ..." if it had been using the "ldap" method.

Kind Regards

Hazel Smith
Database Administrator
Cromwell Tools

___________________________________________________

This email is intended for the named recipient. The information contained
in it is confidential. You should not copy it for any purposes, nor
disclose its contents to any other party. If you received this email
in error, please notify the sender immediately via email, and delete it from
your computer.

Any views or opinions presented are solely those of the author and do not
necessarily represent those of the company.

PCI Compliancy: Please note, we do not send or wish to receive banking, credit
or debit card information by email or any other form of communication.

Please try our new on-line ordering system at http://www.cromwell.co.uk/ice

Cromwell Tools Limited, PO Box 14, 65 Chartwell Drive
Wigston, Leicester LE18 1AT. Tel 0116 2888000
Registered in England and Wales, Reg No 00986161
VAT GB 115 5713 87 900
__________________________________________________

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2012-08-09 14:09:15 Re: PostgreSQL oom_adj postmaster process to -17
Previous Message Craig Ringer 2012-08-09 12:49:51 Re: Data migration to sql server 2008