Add a hook for modifying the ldapbind password
authorAndrew Dunstan <andrew@dunslane.net>
Wed, 15 Mar 2023 20:37:28 +0000 (16:37 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Wed, 15 Mar 2023 20:37:28 +0000 (16:37 -0400)
commit419a8dd8142afef790dafd91ba39afac2ca48aaf
treeaa4e854f657f52a0a02ac1092c63533f33db659c
parente3ac85014eb280ee2e82b36dc3be1b62c838b3e4
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
src/backend/libpq/auth.c
src/include/libpq/auth.h
src/test/modules/Makefile
src/test/modules/ldap_password_func/Makefile [new file with mode: 0644]
src/test/modules/ldap_password_func/ldap_password_func.c [new file with mode: 0644]
src/test/modules/ldap_password_func/meson.build [new file with mode: 0644]
src/test/modules/ldap_password_func/t/001_mutated_bindpasswd.pl [new file with mode: 0644]
src/test/modules/meson.build