pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Derrick Stensrud <dstensrud@worleyco.com>
To: pgsql-admin@postgresql.org
Subject: pam_ldap conversation error
Date: Sun, 17 Dec 2006 17:57:02 -0600
Message-ID: <4585D94E.4090809@worleyco.com> (raw)

I'm trying to setup postgresql to authenticate using pam_ldap against a 
windows 2003 Active Directory server.  I have setup accounts on the 
Active directory and tested the authentication against it using services 
like local machine login and ssh logins and it authenticates properly.  
I edited the pg_hba.conf and added an entry for one of the users, like this:

local   all             derrick3                        pam postgres

I have a file in /etc/pam.d/ called postgres and it looks like this:

auth    required        /lib/security/pam_ldap.so
account required        /lib/security/pam_ldap.so


I have logged into the template1 database and added the user derrick3.  
I then tried to run this:

psql -U derrick3 -d template1

it prompts for a password and gives this error after I use the password 
I setup in Active Directory:

psql: FATAL:  PAM authentication failed for user "derrick3"

if I look in postgresql.log I find this:

LOG:  pam_authenticate failed: Conversation error
FATAL:  PAM authentication failed for user "derrick3"
LOG:  could not send data to client: Broken pipe
LOG:  pam_authenticate failed: User not known to the underlying 
authentication module
FATAL:  PAM authentication failed for user "derrick3"


Can anyone help put me on the right track?  Thanks.

Message-ID: <4585D94E.4090809@worleyco.com>
Permalink:  ../4585D94E.4090809@worleyco.com/
Also on:    postgresql.org/message-id/4585D94E.4090809@worleyco.com

 · 

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: dstensrud@worleyco.com
  Subject: Re: pam_ldap conversation error
  In-Reply-To: <4585D94E.4090809@worleyco.com>
  References: <4585D94E.4090809@worleyco.com>

* 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