v1-0001-Remove-radius-from-initdb-authentication-methods.patch
application/octet-stream
Filename: v1-0001-Remove-radius-from-initdb-authentication-methods.patch
Type: application/octet-stream
Part: 0
Patch
Format: format-patch
Series: patch v1-0001
Subject: Remove radius from initdb authentication methods
| File | + | − |
|---|---|---|
| src/bin/initdb/initdb.c | 2 | 2 |
From 5763380d8d2fa9dc7bd9b9c202153c702ea354f7 Mon Sep 17 00:00:00 2001
From: "Chao Li (Evan)" <lic@highgo.com>
Date: Wed, 1 Jul 2026 05:59:29 +0800
Subject: [PATCH v1] 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.
Author: Chao Li <lic@highgo.com>
---
src/bin/initdb/initdb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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
--
2.50.1 (Apple Git-155)