]> granicus.if.org Git - pgbouncer/commitdiff
Fix incorrect references to auth_mode
authorMagnus Hagander <magnus@hagander.net>
Thu, 30 Mar 2017 15:25:57 +0000 (17:25 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 30 Mar 2017 15:28:22 +0000 (17:28 +0200)
The parameter is called auth_type, not auth_mode.

NEWS.rst
doc/usage.rst
src/admin.c

index 75143c9309b009740fa4a3bdb646aad111dd3730..cdd83db26115eaeb43ad4f0cc1a1938963fe007f 100644 (file)
--- 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.
index b23c26b8035fa323027f08facad130104b8334f3..f29e9b858c40ac388b38ce3cc445b317a745aafd 100644 (file)
@@ -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,
index cdbbaab529e84932d7e40b3c3c3ad3043b945ce9..3c5183ec28dfab2c5cc07cb2e8b9c55f750b0caf 100644 (file)
@@ -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) {