pgsql: Add a hook for modifying the ldapbind password

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add a hook for modifying the ldapbind password
Date: 2023-03-15 20:38:28
Message-ID: E1pcXtD-003iE9-Je@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add a hook for modifying the ldapbind password

The hook can be installed by a shared_preload library.

A similar mechanism could be used for radius paswords, for example, and
the type name auth_password_hook_typ has been shosen with that in mind.

John Naylor and Andrew Dunstan

Discussion: https://postgr.es/m/469b06ed-69de-ba59-c13a-91d2372e52a9@dunslane.net

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/419a8dd8142afef790dafd91ba39afac2ca48aaf

Modified Files
--------------
src/backend/libpq/auth.c | 12 ++-
src/include/libpq/auth.h | 6 ++
src/test/modules/Makefile | 11 +++
src/test/modules/ldap_password_func/Makefile | 25 +++++
.../ldap_password_func/ldap_password_func.c | 65 +++++++++++++
src/test/modules/ldap_password_func/meson.build | 33 +++++++
.../ldap_password_func/t/001_mutated_bindpasswd.pl | 103 +++++++++++++++++++++
src/test/modules/meson.build | 1 +
8 files changed, 255 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2023-03-15 20:59:19 pgsql: Support [NO] INDENT option in XMLSERIALIZE().
Previous Message Tom Lane 2023-03-15 15:59:28 pgsql: Support PlaceHolderVars in MERGE actions.