pam 'Conversation failure' under Solaris - Mailing list pgsql-admin

From Tom JONES
Subject pam 'Conversation failure' under Solaris
Date
Msg-id 6910.1045149408@cs.ucl.ac.uk
Whole thread Raw
List pgsql-admin
Hi,

I am trying to get postgres 7.3.2 to work with pam under Solaris 2.7.
The only option I gave to ./configure (apart from --prefix) was
--with-pam.

This is the matching line from my pg_hba.conf file:
  host all all xxx.xx.xx.xx 255.255.255.255 pam other

and here are the relevant lines from /etc/pam.conf

  other   auth required   /usr/lib/security/pam_unix.so.1
  other   account required        /usr/lib/security/pam_unix.so.1
  other   session required        /usr/lib/security/pam_unix.so.1
  other   password required       /usr/lib/security/pam_unix.so.1

When I try and connect from a remote client (psql), postgres immediately logs
this:

  LOG:  CheckPAMAuth: pam_authenticate failed: 'Conversation failure'
  FATAL:  PAM authentication failed for user "ucactgj"

and syslog logs this:

  green postgres[21528]: pam_authenticate: error Conversation failure

The client then asks for my password. When I hit return, postgres
logs this:

  LOG:  CheckPAMAuth: pam_authenticate failed: 'Authentication failed'
  FATAL:  PAM authentication failed for user "ucactgj"

and syslog logs this:

  green postgres[21961]: pam_authenticate: error Authentication failed



When trying to connect over the unix socket on the localhost, I
get similar messages, with the addition of postgres logging this
(before the password is entered):

  LOG:  pq_flush: send() failed: Broken pipe


The only similar thing I can find in the archives is at this URL:
  http://archives.postgresql.org/pgsql-admin/2002-06/msg00110.php
but that message got no reply.

Does anyone actually have postgres working with pam under solaris?

  cheers,
  Tom.

pgsql-admin by date:

Previous
From: mjh+google@itys.net (Matthew J. Harmon)
Date:
Subject: Import Wizard Error: Number 9, Subscript out of range
Next
From: "King_Henree@yahoo.com"
Date:
Subject: What other parameters to consider when increasing max connections?