Thread

Commits

  1. Remove radius from initdb authentication methods.

  1. Remove radius from initdb authentication methods

    Chao Li <li.evan.chao@gmail.com> — 2026-06-30T22:08:24Z

    Hi,
    
    While testing “[a1643d40b] Remove RADIUS support”, I found that initdb still accepts --auth=radius.
    
    See this repro:
    
    1. Run initdb
    ```
    % initdb --auth=radius .
    ```
    
    2. Check pg_hba.conf, radius is configured there:
    ```
    # "local" is for Unix domain socket connections only
    local   all             all                                     radius
    # IPv4 local connections:
    host    all             all             127.0.0.1/32            radius
    # IPv6 local connections:
    host    all             all             ::1/128                 radius
    ```
    
    3. Starting the server fails
    ```
    % pg_ctl -D . start
    waiting for server to start....2026-07-01 05:49:51.560 CST [50521] LOG:  starting PostgreSQL 20devel on aarch64-apple-darwin25.5.0, compiled by Apple clang version 21.0.0 (clang-2100.1.1.101), 64-bit
    2026-07-01 05:49:51.562 CST [50521] LOG:  listening on IPv6 address "::1", port 5432
    2026-07-01 05:49:51.562 CST [50521] LOG:  listening on IPv4 address "127.0.0.1", port 5432
    2026-07-01 05:49:51.562 CST [50521] LOG:  listening on Unix socket "/tmp/.s.PGSQL.5432"
    2026-07-01 05:49:51.563 CST [50521] LOG:  invalid authentication method "radius"
    2026-07-01 05:49:51.563 CST [50521] CONTEXT:  line 113 of configuration file "/Users/chaol/Downloads/pg_data/cndb/pg_hba.conf"
    2026-07-01 05:49:51.563 CST [50521] LOG:  invalid authentication method "radius"
    2026-07-01 05:49:51.563 CST [50521] CONTEXT:  line 115 of configuration file "/Users/chaol/Downloads/pg_data/cndb/pg_hba.conf"
    2026-07-01 05:49:51.563 CST [50521] LOG:  invalid authentication method "radius"
    2026-07-01 05:49:51.563 CST [50521] CONTEXT:  line 117 of configuration file "/Users/chaol/Downloads/pg_data/cndb/pg_hba.conf"
    2026-07-01 05:49:51.563 CST [50521] LOG:  invalid authentication method "radius"
    2026-07-01 05:49:51.563 CST [50521] CONTEXT:  line 120 of configuration file "/Users/chaol/Downloads/pg_data/cndb/pg_hba.conf"
    2026-07-01 05:49:51.563 CST [50521] LOG:  invalid authentication method "radius"
    2026-07-01 05:49:51.563 CST [50521] CONTEXT:  line 121 of configuration file "/Users/chaol/Downloads/pg_data/cndb/pg_hba.conf"
    2026-07-01 05:49:51.563 CST [50521] LOG:  invalid authentication method "radius"
    2026-07-01 05:49:51.563 CST [50521] CONTEXT:  line 122 of configuration file "/Users/chaol/Downloads/pg_data/cndb/pg_hba.conf"
    2026-07-01 05:49:51.563 CST [50521] FATAL:  could not load /Users/chaol/Downloads/pg_data/cndb/pg_hba.conf
    2026-07-01 05:49:51.563 CST [50521] LOG:  database system is shut down
     stopped waiting
    pg_ctl: could not start server
    Examine the log output.
    ```
    
    The attached small patch removes radius from initdb's supported auth lists.
    
    Best regards,
    --
    Chao Li (Evan)
    HighGo Software Co., Ltd.
    https://www.highgo.com/
    
    
    
    
    
  2. Re: Remove radius from initdb authentication methods

    Thomas Munro <thomas.munro@gmail.com> — 2026-06-30T23:48:07Z

    On Wed, Jul 1, 2026 at 10:09 AM Chao Li <li.evan.chao@gmail.com> wrote:
    > The attached small patch removes radius from initdb's supported auth lists.
    
    Pushed.  Thanks!
    
    
    
    
  3. Re: Remove radius from initdb authentication methods

    Chao Li <li.evan.chao@gmail.com> — 2026-07-01T00:38:58Z

    
    > On Jul 1, 2026, at 07:48, Thomas Munro <thomas.munro@gmail.com> wrote:
    > 
    > On Wed, Jul 1, 2026 at 10:09 AM Chao Li <li.evan.chao@gmail.com> wrote:
    >> The attached small patch removes radius from initdb's supported auth lists.
    > 
    > Pushed.  Thanks!
    
    Thanks for pushing.
    
    Best regards,
    --
    Chao Li (Evan)
    HighGo Software Co., Ltd.
    https://www.highgo.com/