From: Michael Paquier <michael.paquier@gmail.com>
To: Goli, Vijay <Vijay.Goli@marsh.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Request to Enforce the password Strength for PostgreSQL Databases
Date: Thu, 4 Jan 2018 13:45:04 +0900
Message-ID: <20180104044504.GA1218@paquier.xyz> (raw)
In-Reply-To: <b08ee2c1b548467799d93527fe623321@USDFW11XG30CN04.mercer.com>
References: <b08ee2c1b548467799d93527fe623321@USDFW11XG30CN04.mercer.com>
On Wed, Jan 03, 2018 at 02:53:27PM +0000, Goli, Vijay wrote:
> As per our Organization standards, we need to have the below limitations:
>
> 1. Password length should be minimum of 15 characters.
> 2. Password should contain at least one digit, one upper and lower
> case character and one punctuation.
> 3. New Password should differ by atleast 3 characters.
>
> Can you please help if we can modify the content in
> "passwordcheck.dll" lib if possible to set the above standards and
> how? Also, if the current PostgreSQL DB 9.5.6 version does not have
> feasibility and is there any future versions which contains these
> changes?
The answer is yes, you can modify passwordcheck. Perhaps you should have
a look at the following module that I have developped which is based on
passwordcheck, except that it has an extra set of switches which allow
more finely-grained policies:
https://github.com/michaelpq/pg_plugins/tree/master/passwordcheck_extra
If you develop a patch to improve passwordcheck with a patch, there is
still time for integration with v11, and you would be likely interested
in the following thread:
https://www.postgresql.org/message-id/AC785D69-41EC-4D0A-AC37-1F9FF55C9E34@amazon.com
After that the packaging is on you. For Windows, when compiling with
Visual Studio, you can just fork the set of scripts in src/tools/msvc
and copy the module you'd like to compile in contrib/. You can also use
the basic set of perl APIs present in the code tree to do
out-of-the-tree compilation, but that requires skills a bit more
advanced (I tend to do the second for some of my stuff, that's more
portable long-term and needs no patching of upstream Postgres).
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: michael.paquier@gmail.com, Vijay.Goli@marsh.com
Subject: Re: Request to Enforce the password Strength for PostgreSQL Databases
In-Reply-To: <20180104044504.GA1218@paquier.xyz>
References: <b08ee2c1b548467799d93527fe623321@USDFW11XG30CN04.mercer.com> <20180104044504.GA1218@paquier.xyz>
* 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