pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add a hook for modifying the ldapbind password
Date: Wed, 15 Mar 2023 20:38:28 +0000
Message-ID: <E1pcXtD-003iE9-Je@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1pcXtD-003iE9-Je@gemulon.postgresql.org>
Permalink:  ../E1pcXtD-003iE9-Je@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pcXtD-003iE9-Je@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: andrew@dunslane.net, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add a hook for modifying the ldapbind password
  In-Reply-To: <E1pcXtD-003iE9-Je@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox