Skip site navigation (1) Skip section navigation (2)

Multiple auth types for a connection

From: Rob Cherry <postgresadmin(at)lxrb(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Multiple auth types for a connection
Date: 2007-05-02 20:22:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin

I am operating in an environment where we have regular users who will
authenticate via PAM and software users for automated processes that
would be more appropriate to authenticate via a password (encrypted or
not - irrelevant to this question).  I have taken a look through the
documentation and google and done some trial and error, but I dont seem
to be able to get this working for a single client to be able to use
either method.

My 2 guesses involved changing the $PGDATA$/pg_hba.conf to try these

host    all         all             pam,password

(also tried space seperated as well as comma seperated)

host    all         all             pam
host    all         all             password

In both cases (neither caused an error) the first type wins and the
other gives access denied.

Does anyone know if it is possible to overload auth types like this such
that if pam fails password would be tried?

Many thanks in advance,

Rob Cherry


pgsql-admin by date

Next:From: Tom LaneDate: 2007-05-02 21:42:38
Subject: Re: Multiple auth types for a connection
Previous:From: Scott MarloweDate: 2007-05-02 15:52:52
Subject: Re: reindexdb hangs

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group