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

Lines changed: 4 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy