aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2025-01-10 22:02:58 +0100
committerDaniel Gustafsson <dgustafsson@postgresql.org>2025-01-10 22:02:58 +0100
commit8ed9bf0a3217c5fb18e9bba43a655b0a947f6f36 (patch)
tree37bd8af11fa20d09d95d862ca74c736e41d15815
parent5db9367e51136cb270feb79c741f68c1413dce78 (diff)
downloadpostgresql-8ed9bf0a3217c5fb18e9bba43a655b0a947f6f36.tar.gz
postgresql-8ed9bf0a3217c5fb18e9bba43a655b0a947f6f36.zip
Fix missing ldapscheme option in pg_hba_file_rules()
The ldapscheme option was missed when inspecing the HbaLine for assembling rows for the pg_hba_file_rules function. Backpatch to all supported versions. Author: Laurenz Albe <laurenz.albe@cybertec.at> Reported-by: Laurenz Albe <laurenz.albe@cybertec.at> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Bug: 18769 Discussion: https://postgr.es/m/18769-dd8610cbc0405172@postgresql.org Backpatch-through: v13
-rw-r--r--src/backend/utils/adt/hbafuncs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/utils/adt/hbafuncs.c b/src/backend/utils/adt/hbafuncs.c
index beaae88e541..43cef2572f8 100644
--- a/src/backend/utils/adt/hbafuncs.c
+++ b/src/backend/utils/adt/hbafuncs.c
@@ -89,6 +89,10 @@ get_hba_options(HbaLine *hba)
options[noptions++] =
CStringGetTextDatum(psprintf("ldapport=%d", hba->ldapport));
+ if (hba->ldapscheme)
+ options[noptions++] =
+ CStringGetTextDatum(psprintf("ldapscheme=%s", hba->ldapscheme));
+
if (hba->ldaptls)
options[noptions++] =
CStringGetTextDatum("ldaptls=true");