Add a hook to CREATE/ALTER ROLE to allow an external module to check the
Tom Lane <tgl@sss.pgh.pa.us>
Add a hook to CREATE/ALTER ROLE to allow an external module to check the strength of database passwords, and create a sample implementation of such a hook as a new contrib module "passwordcheck". Laurenz Albe, reviewed by Takahiro Itagaki
Files
| Path | Change | +/− |
|---|---|---|
| contrib/Makefile | modified | +2 −1 |
| contrib/passwordcheck/Makefile | added | +19 −0 |
| contrib/passwordcheck/passwordcheck.c | added | +147 −0 |
| contrib/README | modified | +4 −0 |
| doc/src/sgml/contrib.sgml | modified | +2 −1 |
| doc/src/sgml/filelist.sgml | modified | +2 −1 |
| doc/src/sgml/passwordcheck.sgml | added | +62 −0 |
| src/backend/commands/user.c | modified | +66 −19 |
| src/include/commands/user.h | modified | +9 −1 |