Re: BUG #15932: Module passwordcheck doesn't reference previous hooks
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: rafaelthca@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2019-07-30T02:24:20Z
Lists: pgsql-bugs
Attachments
- passwordcheck-prev-hook-v1.patch (text/x-diff) patch v1
On Mon, Jul 29, 2019 at 03:56:35PM +0000, PG Bug reporting form wrote: > Module passwordcheck doesn't reference (thus, doesn't call) previous > hooks: > > https://github.com/postgres/postgres/blob/master/contrib/passwordcheck/passwordcheck.c#L133 > > As a result, if passwordcheck is used hook check_password_hook becomes > useless. So, it would erase the trace of previous hooks if loaded last. passwordcheck holds value as an example of use for some hooks, and examples should be a good students, so I agree to do better and fix that. The attached patch does the work, what do you think about it? -- Michael
Commits
-
Fix handling of previous password hooks in passwordcheck
- eea28a3cb369 9.4.24 landed
- 4536e494fdf2 9.5.19 landed
- 957b822b5294 9.6.15 landed
- cb007441789d 10.10 landed
- a7eb28d0caa8 11.5 landed
- 20f5cb19582e 12.0 landed
- b2a3d706b8d7 13.0 landed