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 <
[email protected]>
Reported-by: Laurenz Albe <[email protected]>
Reviewed-by: Daniel Gustafsson <[email protected]>
Bug: 18769
Discussion: https://postgr.es/m/18769-
dd8610cbc0405172@postgresql.org
Backpatch-through: v13
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");