From: Brett Northcott <brettn@bigpond.com>
To: pgsql-admin@postgresql.org
Subject: PAM authentication
Date: Fri, 31 Jan 2003 16:45:37 +1030
Message-ID: <001301c2c8f0$2c54b3d0$0101a8c0@AMD1200> (raw)
ok - fairly new to postgresql & tring to set up tcp/ip access using pam
authentication
using gentoo_linux 1.4_rc2
postgresql-7.3.1
my pg_hba.conf file has the entries
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
local all all trust
host all all 127.0.0.1 255.255.255.255 trust
host all all 192.168.1.1 255.255.255.0 pam
postgresql
my /etc/pam.d/postgresql file has the entries
#%PAM-1.0
auth required pam_stack.so service=system-auth
account required pam_stack.so service=system-auth
when i try to connect (locally)....
# psql test -U brett
Password: (password entered - i know it is correct)
psql: FATAL: PAM authentication failed for user "brett"
i get the following entries in /var/log/auth.log - and a
Jan 31 16:31:47 achilles unix_chkpwd[25987]: check pass; user unknown
Jan 31 16:31:47 achilles postgresql(pam_unix)[25986]: authentication
failure; logname= uid=70 euid=70 tty= ruser= rhost= user=brett
'brett' has a system level account.
i can connect as user 'brett' if pg_hba.conf is set to 'trust', but never
when pam is involved...
any ideas? i've been mucking around with this for a couple of days & not
getting very far
regards,
brett
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: brettn@bigpond.com
Subject: Re: PAM authentication
In-Reply-To: <001301c2c8f0$2c54b3d0$0101a8c0@AMD1200>
References: <001301c2c8f0$2c54b3d0$0101a8c0@AMD1200>
* 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