Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id C09ED632CCE for ; Thu, 5 Aug 2010 17:21:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 48070-10 for ; Thu, 5 Aug 2010 20:21:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mail.postgresql.org (Postfix) with ESMTP id 4CEAA633A34 for ; Thu, 5 Aug 2010 17:21:00 -0300 (ADT) Received: by wwa36 with SMTP id 36so6229796wwa.19 for ; Thu, 05 Aug 2010 13:20:59 -0700 (PDT) Received: by 10.216.178.130 with SMTP id f2mr5227551wem.101.1281039657878; Thu, 05 Aug 2010 13:20:57 -0700 (PDT) Received: from Craig-Jamess-MacBook-Pro.local (wsip-70-167-124-126.sd.sd.cox.net [70.167.124.126]) by mx.google.com with ESMTPS id h37sm435165wej.47.2010.08.05.13.20.55 (version=SSLv3 cipher=RC4-MD5); Thu, 05 Aug 2010 13:20:57 -0700 (PDT) Message-ID: <4C5B1D25.2060906@emolecules.com> Date: Thu, 05 Aug 2010 13:20:53 -0700 From: Craig James User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: password administration References: <20100805200454.17A64632749@mail.postgresql.org> In-Reply-To: <20100805200454.17A64632749@mail.postgresql.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201008/29 X-Sequence-Number: 35278 On 8/5/10 12:58 PM, Mark Steben wrote: > I would like to set up a facility that enforces password changes for roles > After a predefined period (30 days for instance) when logging into psql > Or, at the very least, send an email out to notify that your current > Password period is about to expire. Preferably, I'd like to use > The 'rolvaliduntil' column in pg_roles. > > I'm wondering if there is an app inside or outside of postgres > that I can use or do I have to design from scratch. This is an off-topic response, but security experts have said that this is a REALLY bad idea. It forces people to choose a new password, which means they can't remember it. So what do they do? They write it down. Anyone snooping around their office can find it. Besides, when a password is stolen, it's usually used within minutes. Making everyone change every month does no good at all. A better solution is to implement a password-strength algorithm and require people to select decent passwords to begin with. Craig