From: Thomas Munro Date: Tue, 30 Jun 2026 23:25:37 +0000 (+1200) Subject: Remove radius from initdb authentication methods. X-Git-Tag: REL_19_BETA2~83 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f34f12f0c312ae7f31d76fa8dc2d934c43f9b6c;p=thirdparty%2Fpostgresql.git Remove radius from initdb authentication methods. Commit a1643d40b removed RADIUS authentication, but apparently overlooked initdb's list of accepted authentication methods. As a result, initdb still accepted radius for --auth, --auth-host, and --auth-local, allowing it to create a pg_hba.conf that the server could not load. Remove radius from initdb's local and host authentication method lists. Backpatch-through: 19 Author: Chao Li Discussion: https://postgr.es/m/983F946B-A7CE-4C93-B5F0-665616F72254%40gmail.com --- diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index 14cb79c26be..8fba896561b 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -94,7 +94,7 @@ typedef struct _stringlist } _stringlist; static const char *const auth_methods_host[] = { - "trust", "reject", "scram-sha-256", "md5", "password", "ident", "radius", + "trust", "reject", "scram-sha-256", "md5", "password", "ident", #ifdef ENABLE_GSS "gss", #endif @@ -116,7 +116,7 @@ static const char *const auth_methods_host[] = { NULL }; static const char *const auth_methods_local[] = { - "trust", "reject", "scram-sha-256", "md5", "password", "peer", "radius", + "trust", "reject", "scram-sha-256", "md5", "password", "peer", #ifdef USE_PAM "pam", #endif