postgres.git / summary / log / commit / refs
commit c35bbdfbc0d30fee6037b7859501b68b28d68c34
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
Date: Fri Jan 10 21:02:58 2025 +0000
First released in: 18.0, 13.19, 14.16, 15.11, 16.7, 17.3
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
src/backend/utils/adt/hbafuncs.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/backend/utils/adt/hbafuncs.c b/src/backend/utils/adt/hbafuncs.c
index 73d3ad1dadc..053221814e0 100644
--- a/src/backend/utils/adt/hbafuncs.c
+++ b/src/backend/utils/adt/hbafuncs.c
@@ -90,6 +90,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");
[parent: 0b5927dfac26]