From: matan.hury@imperva.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14653: PAM authentication failed
Date: Sun, 14 May 2017 07:16:41 +0000
Message-ID: <20170514071641.1451.11145@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 14653
Logged by: matan hury
Email address: matan.hury@imperva.com
PostgreSQL version: 9.6.1
Operating system: Linux rhel 7.2
Description:
Hi,
After a lot of attempts, I think that have a bug with PAM authentication
with PostgreSQL 9.6.
This is my configuration:
* On linux there's user -postgres with the same credentials of postgres user
on the DB server.
* The postgres user has permissions as root for /etc/shadow and
/etc/passwd.
* This is the PAM file of PostgreSQL:
auth include postgres=system-auth debug
account include postgres=system-auth
password include postgres=system-auth
#auth required pam_pgsql.so
#account required pam_pgsql.so
#password required pam_pgsql.so
* This is the system-auth file:
auth required pam_env.so
auth sufficient pam_unix.so nullok try_first_pass
auth requisite pam_succeed_if.so uid >= 1000 quiet_success
auth required pam_deny.so
account required pam_unix.so
account sufficient pam_localuser.so
account sufficient pam_succeed_if.so uid < 1000 quiet
account required pam_permit.so
password requisite pam_pwquality.so try_first_pass local_users_only
retry=3 authtok_type=
password sufficient pam_unix.so sha512 shadow nullok try_first_pass
use_authtok
password required pam_deny.so
session optional pam_keyinit.so revoke
session required pam_limits.so
-session optional pam_systemd.so
session [success=1 default=ignore] pam_succeed_if.so service in crond
quiet use_uid
session required pam_unix.so
* This is the METHOD option in pg_hba:
pam pamservice=PostgreSQL
* This is the error:
psql.bin: FATAL: PAM authentication failed for user "postgres"
I expect for your fast reply ...
Thanks.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: matan.hury@imperva.com
Subject: Re: BUG #14653: PAM authentication failed
In-Reply-To: <20170514071641.1451.11145@wrigleys.postgresql.org>
References: <20170514071641.1451.11145@wrigleys.postgresql.org>
* 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