Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWxP9-0001w9-3E for pgsql-general@arkaria.postgresql.org; Thu, 04 Jan 2018 04:45:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWxP8-0001nX-9j for pgsql-general@arkaria.postgresql.org; Thu, 04 Jan 2018 04:45:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eWxP8-0001nA-08 for pgsql-general@lists.postgresql.org; Thu, 04 Jan 2018 04:45:22 +0000 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eWxP2-00015g-Jl for pgsql-general@postgresql.org; Thu, 04 Jan 2018 04:45:21 +0000 Received: by mail-pg0-x241.google.com with SMTP id t67so283507pgc.5 for ; Wed, 03 Jan 2018 20:45:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=oj/dnpnUChoUbD0oRHHIrBAEKcFgH/CsJ2Q21RijyK0=; b=cAYONqeDtLZLRjj6WqcoCCnMzrWn0HVfl0ZzfOJHbEXsNx142XT+u8vGxcnSY3cNLt +XL2nR0e/GqfPTGJdOIcT5x25exUM0npVidn+i6tGxV8R+P2pQHCMyWU3xTfK6FhsO2Y 1/a7jG2LJu62IKiBv3MdzsZtwhsjbdSM9xOxblweODy/JGmcBx7tHzFfJtxm1qIcmEhV t2oKcD4elo62vvp8NvkLTfpUgzYrFt5DT5cIJvi7d1bLJV5g+mB1WsXPYspT8RSRkoJH Zl/8PeZprf5x8yVPhFIcr/ZC/n4/nFSJjdwT0H9i5JZhLltFJsKG/zBuA9a8EIYwvUP1 OzdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=oj/dnpnUChoUbD0oRHHIrBAEKcFgH/CsJ2Q21RijyK0=; b=d6uvrxRhWMHkUgWGOlnm4k7/vTHqJQYX8wvtttO97k96CBrjLpFovRpr1wMOLcmmXO Z94gSaQVjhxNEiN6HZfq8kZTFIRKQu1XBFcT4UEHpfXaLoE3P1NTw5nskp9fhdjGjXmZ LLTpYzAbTfHf9Oef5hutzG3hhE8BjYOKlqXXe7sbdKD8SHqzS+EOSaggsxY+GteXkOWl diXk+gw+VAhMO4u8YwDTzYkUZH+3SF/HTWZalU6zCf3xRmTdVxhDfveF4kID6+uqwkrL xhtfRLKgcSymWSaWOWWS4lWc+0fkPfaIr+uJs/JZE9zTHxGfWEpzfFfWeclkUUcVfci3 TIfw== X-Gm-Message-State: AKGB3mL9oihO7wwKaalk5RhonJvYDiDW8iefa0ZhY4aeQiB4zFyiRCAM Vf13WbjkSqgpV1WviFLaDeQV+g== X-Google-Smtp-Source: ACJfBosmI7+jZwnmfTkgsGBt/Z/D4loPMQ3j9S7tbleqpI77rGo1n5Ux/sXY6VcEgpqIL6LK2dt8fg== X-Received: by 10.101.80.75 with SMTP id k11mr2938764pgo.359.1515041114235; Wed, 03 Jan 2018 20:45:14 -0800 (PST) Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp. [61.215.137.162]) by smtp.gmail.com with ESMTPSA id b9sm5744714pfl.108.2018.01.03.20.45.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Jan 2018 20:45:13 -0800 (PST) Date: Thu, 4 Jan 2018 13:45:04 +0900 From: Michael Paquier To: "Goli, Vijay" Cc: "pgsql-general@postgresql.org" Subject: Re: Request to Enforce the password Strength for PostgreSQL Databases Message-ID: <20180104044504.GA1218@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: >=20 > 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. >=20 > 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 --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlpNsVAACgkQnvQgOdby QH05KA//c8VKqXlwsJ7JmKVV0dMjpybFTHNcaQRwoqexyfjiOirdZNIJSN7+NGaS tOn4r4xMKZKvt5vYhHepD0c18qi9pzQf5vHLurUbdzKAOgBPwDxy6tTr90yoNoxY +fsRiooSdV5sG3WCzGAv/947AdPICQ0K5Qv8DlIOmz3bmlN48B0NxPzawNG9mOvn iy0GzoZuFmUNV2vYIzmDgS70mhTviyl16gwhqkPsgcQWvFHnCyGFvPU7pZ62OA9h vQKlWFhVtfbSWsuRzkXXdNv4kcFiBvmPyyu/6jbHrspiHHJn2ulVDtnyODTmX1u5 ks+f6ORStDiABVe4S5ReyLMUWjbXngl+gqol4GoXdlYj+4qB7aBOA1cNqDgfZuin P/73mW185vWpcgd5PzGCt4zUHGLXaUyFv+QUgAhlXyQwZ5whOKQ8Itlh1mjFtj7K 5YXA54FrSHATV9GPrqE7HkBMgFi2Jtaxl6MuIT+Z7tPyC8E6sust5u0zfw7Ic9rU ZCIqIB1uDmo7WCuRsFRDghVDjU9OD6C9Yn0wJzCwXLSq4mud6FfRhtEaYgALl1NC X0HntMRrXXXVlY8UpTj4ISmJXb4NDqvJI4DDEce4sJ8uUxE3HINeVD3U4IRx0M1g b3b7ze6WnQvN1j4RZNSf9TZ95ugzID/TzjW/oKj3aokzCCBsiBQ= =5F4p -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v--