Skip to content

Commit 84b8f6d

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 bd0564f commit 84b8f6d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/backend/libpq/hba.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2325,6 +2325,10 @@ gethba_options(HbaLine *hba)
23252325
options[noptions++] =
23262326
CStringGetTextDatum(psprintf("ldapport=%d", hba->ldapport));
23272327

2328+
if (hba->ldapscheme)
2329+
options[noptions++] =
2330+
CStringGetTextDatum(psprintf("ldapscheme=%s", hba->ldapscheme));
2331+
23282332
if (hba->ldaptls)
23292333
options[noptions++] =
23302334
CStringGetTextDatum("ldaptls=true");

0 commit comments

Comments
 (0)