summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gustafsson2025-01-10 21:02:58 +0000
committerDaniel Gustafsson2025-01-10 21:02:58 +0000
commit27a1f8d108114ec463101a812f83542c257f8169 (patch)
tree956f9e7a360b143f7570ad2a089b30d05cf43ba1
parent5b14ec0a48cca3addfc7262c86e60475b7d84c02 (diff)
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 <[email protected]> Reported-by: Laurenz Albe <[email protected]> Reviewed-by: Daniel Gustafsson <[email protected]> Bug: 18769 Discussion: https://postgr.es/m/[email protected] Backpatch-through: v13
-rw-r--r--src/backend/utils/adt/hbafuncs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/utils/adt/hbafuncs.c b/src/backend/utils/adt/hbafuncs.c
index 9fec6722a12..dcc95b24330 100644
--- a/src/backend/utils/adt/hbafuncs.c
+++ b/src/backend/utils/adt/hbafuncs.c
@@ -89,6 +89,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");