pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Chris Stephens <cstephens16@gmail.com>
To: " <pgsql-general@postgresql.org>
Subject: Re: pgbouncer configuration
Date: Wed, 28 Apr 2021 08:51:33 +0200
Message-ID: <e5ac04ff9f5cc25762e7ab7266133a685efc08f5.camel@cybertec.at> (raw)
In-Reply-To: <CAEFL0syTvyKTVkdTu+gda0Nrh8Evfp+3pTb1wGPgLeXBQXjVmw@mail.gmail.com>
References: <CAEFL0syTvyKTVkdTu+gda0Nrh8Evfp+3pTb1wGPgLeXBQXjVmw@mail.gmail.com>

On Tue, 2021-04-27 at 19:46 -0500, Chris Stephens wrote:
> I'm trying to run pgbouncer but am having trouble with what looks like a very simple configuration.
> 
> centos 7
> postgres 12
> pgbouncer 1.15
> 
> we are already using pam for database auth. pgbouncer was compiled with --with-pam. there is a /etc/pam.d/pgbouncer config file copied from the one currently being used for postgres auth.
> 
> i can list the whole config file if needed but i get the following when trying to start pgbouncer up:
> 
> [postgres@lsst-pgsql02 ~]$ pgbouncer  -d /etc/pgbouncer/pgbouncer.ini
> 2021-04-27 19:37:34.256 CDT [10653] ERROR invalid value "pam" for parameter auth_type in configuration (/etc/pgbouncer/pgbouncer.ini:118)
> 2021-04-27 19:37:34.256 CDT [10653] FATAL cannot load config file
> 
> [postgres@lsst-pgsql02 pgbouncer]$ egrep "auth_type" pgbouncer.ini
> auth_type = pam
> 
> any ideas? 

I'd suspect that pgBouncer is not built with PAM support after all.

Run "ldd" on the executable and see if it links with OpenLDAP.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (4+ messages)  latest in thread

Message-ID: <e5ac04ff9f5cc25762e7ab7266133a685efc08f5.camel@cybertec.at>
Permalink:  ../e5ac04ff9f5cc25762e7ab7266133a685efc08f5.camel@cybertec.at/
Also on:    postgresql.org/message-id/e5ac04ff9f5cc25762e7ab7266133a685efc08f5.camel@cybertec.at

 · 

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-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, cstephens16@gmail.com
  Subject: Re: pgbouncer configuration
  In-Reply-To: <e5ac04ff9f5cc25762e7ab7266133a685efc08f5.camel@cybertec.at>
  References: <CAEFL0syTvyKTVkdTu+gda0Nrh8Evfp+3pTb1wGPgLeXBQXjVmw@mail.gmail.com> <e5ac04ff9f5cc25762e7ab7266133a685efc08f5.camel@cybertec.at>

* 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