Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbe2v-0005ZS-Ek for pgsql-general@arkaria.postgresql.org; Wed, 28 Apr 2021 06:51:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lbe2t-0000wR-Fq for pgsql-general@arkaria.postgresql.org; Wed, 28 Apr 2021 06:51:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbe2t-0000wK-4C for pgsql-general@lists.postgresql.org; Wed, 28 Apr 2021 06:51:39 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lbe2q-0001AD-2z for pgsql-general@postgresql.org; Wed, 28 Apr 2021 06:51:38 +0000 Received: by mail-ej1-x632.google.com with SMTP id u3so14279793eja.12 for ; Tue, 27 Apr 2021 23:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=y6q3JBxDEyg3NWu8xiNnBPmh3KjCX1NwZzGJ6I4cnJA=; b=B6MaTFgzrV6tbtql9fetoRDatjzdmnAdpUmqFZCerzXV3rAI/BYT7tGk2kZ9YBX4Mw EfH+N3lg426LKxlz/Dm3PLgCsxlXUZj7Jp4u8JpfUDm2eJoqOZ+fmh0IdHDpYjdv/eH+ MJS9tym0L66xWGAYM3MWj5zMosgGcEsoDUC/v8EAGv4vf8TSJGOzeCfrGlTfVGlu4PyU XBxiKXuomnCCLwCLxTilps1GHE6tX95wg0wCN76dAiPMyAtArKb2hGGTMBFH9L0Al4Qi SBbIDXTsfcZgPrUst1b/VSBbsd/TuOlTXwley8XGw+P7AILxa59GOZibS3vecsxr9O4j ctBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=y6q3JBxDEyg3NWu8xiNnBPmh3KjCX1NwZzGJ6I4cnJA=; b=VjCPHEa0DP8DugVTVGiOUxZAzU8KxgJC9A2xRF47JjkoU/qmwrJ/J/V5B2t2tsxOT/ 1fXm3l5/WMgLAp6doYYJ3sa4ZlD01kSHGHmakTsitxA6q+CJy39KVfYUElrXbBjS5dTY sZPvn49tSCs/9OScAob3lA7blRFJx7xzU3P/rfQEElsS0hb2If+ZSu4FE28iMuAjG2Ad iuT/fY+vYQDkiakawRdDm6c0WxFMpak53NufNP1lFTmP1nKxA7i1gl/6rLdL6PpysnJ6 Kybtl7KLd9wG+jMgYyr/+CWoHNxG1/e6Rw3i3SwzjFrJ8xfVuEAAVo/0MDDcCs3AHB2j E9FA== X-Gm-Message-State: AOAM533EL9/s6XSQHi5fFLB4pnKCkIfWIEfxfIlGqchxoqI6tQGrlNBM OOsC8qkRuKOh0EkayBE+YYEMNQ== X-Google-Smtp-Source: ABdhPJyME58NMObwnXvt6YcWt1GbNoRH8VMgawh+uOaQWXjdAQPMUG99ISFaEpZgnGxuVc3Va3iJ1g== X-Received: by 2002:a17:906:168f:: with SMTP id s15mr4600738ejd.220.1619592695007; Tue, 27 Apr 2021 23:51:35 -0700 (PDT) Received: from localhost.localdomain (217-149-168-134.nat.highway.telekom.at. [217.149.168.134]) by smtp.gmail.com with ESMTPSA id f24sm1657567edt.44.2021.04.27.23.51.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Apr 2021 23:51:34 -0700 (PDT) Message-ID: Subject: Re: pgbouncer configuration From: Laurenz Albe To: Chris Stephens , "pgsql-general@postgresql.org >> PG-General Mailing List" Date: Wed, 28 Apr 2021 08:51:33 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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