diff options
author | Daniel Gustafsson <dgustafsson@postgresql.org> | 2025-01-10 22:02:58 +0100 |
---|---|---|
committer | Daniel Gustafsson <dgustafsson@postgresql.org> | 2025-01-10 22:02:58 +0100 |
commit | 83ffb9f20f06120273304332594b7fab159f738f (patch) | |
tree | 999c3349be16691e62411ed313a3f7fec155946d /src | |
parent | 8f40d46126a04105ff0aa8353ec62c3c7d31af60 (diff) | |
download | postgresql-83ffb9f20f06120273304332594b7fab159f738f.tar.gz postgresql-83ffb9f20f06120273304332594b7fab159f738f.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/libpq/hba.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/libpq/hba.c b/src/backend/libpq/hba.c index 40ad8c12b47..48a1ec85ef6 100644 --- a/src/backend/libpq/hba.c +++ b/src/backend/libpq/hba.c @@ -2383,6 +2383,10 @@ gethba_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"); |