From 33b36c94f2e8947e31faa14fa604d9490c98d976 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Thu, 30 Mar 2017 17:25:57 +0200 Subject: [PATCH] Fix incorrect references to auth_mode The parameter is called auth_type, not auth_mode. --- NEWS.rst | 4 ++-- doc/usage.rst | 2 +- src/admin.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/NEWS.rst b/NEWS.rst index 75143c9..cdd83db 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -713,8 +713,8 @@ PgBouncer 1.3.x * Fix SHOW DATABASES which was broken due to column addition. - * Console access was disabled when "auth_mode=any" as pgbouncer dropped username. - Fix: if "auth_mode=any", allow any user to console as admin. + * Console access was disabled when "auth_type=any" as pgbouncer dropped username. + Fix: if "auth_type=any", allow any user to console as admin. * Fix bad CUSTOM_ALIGN macro. Luckily it's unused if OS already defines ALIGN macro thus seems the bug has not happened in wild. diff --git a/doc/usage.rst b/doc/usage.rst index b23c26b..f29e9b8 100644 --- a/doc/usage.rst +++ b/doc/usage.rst @@ -154,7 +154,7 @@ database **pgbouncer**:: $ psql -p 6543 pgbouncer Only users listed in configuration parameters **admin_users** or **stats_users** -are allowed to login to the console. (Except when `auth_mode=any`, then +are allowed to login to the console. (Except when `auth_type=any`, then any user is allowed in as a stats_user.) Additionally, the username **pgbouncer** is allowed to log in without password, diff --git a/src/admin.c b/src/admin.c index cdbbaab..3c5183e 100644 --- a/src/admin.c +++ b/src/admin.c @@ -1377,7 +1377,7 @@ bool admin_pre_login(PgSocket *client, const char *username) } /* - * auth_mode=any does not keep original username around, + * auth_type=any does not keep original username around, * so username based check has to take place here */ if (cf_auth_type == AUTH_ANY) { -- 2.40.0