Skip to content

Commit 8ed9bf0

Browse files
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
1 parent 5db9367 commit 8ed9bf0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/backend/utils/adt/hbafuncs.c

+4
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ get_hba_options(HbaLine *hba)
8989
options[noptions++] =
9090
CStringGetTextDatum(psprintf("ldapport=%d", hba->ldapport));
9191

92+
if (hba->ldapscheme)
93+
options[noptions++] =
94+
CStringGetTextDatum(psprintf("ldapscheme=%s", hba->ldapscheme));
95+
9296
if (hba->ldaptls)
9397
options[noptions++] =
9498
CStringGetTextDatum("ldaptls=true");

0 commit comments

Comments
 (0)