Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 777BB632EC2 for ; Sun, 8 Aug 2010 17:55:19 -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 44915-09-2 for ; Sun, 8 Aug 2010 20:55:11 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f46.google.com (mail-bw0-f46.google.com [209.85.214.46]) by mail.postgresql.org (Postfix) with ESMTP id 828E7633485 for ; Sun, 8 Aug 2010 17:55:11 -0300 (ADT) Received: by bwz3 with SMTP id 3so823177bwz.19 for ; Sun, 08 Aug 2010 13:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=noXQA0R9SQP3UvReUQOWuHTzqdIyyVSrNrSXESbpDBY=; b=WS3vFHm/ry+8Y9I7rgSF/R1kB55r0QsYnSmtsRjmFvTug2MmKQmUjPxbvlxNXyqT/+ dlxiEAf+xJFO/Jg749Dna73aOnv++4DWj1YzX0bkKq9O4W1ECYxwdWp5D2jdWR5/C3Z9 um87bd7EOKdBadHpaNjZMu3JprNivNgc3ZoXc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=qbVULNO/BElSoXXmGwhSYzezQBNgqv8ew6E5IHX29zHOfV68NWoMp4ckD2at4zEpgq cvuZ5rZ4Ooq7nrxLQbBo6Nz19Yrd3VCKDkxbW2pHeSugAfPJJMQBSBaXDmsvgzFQ2UZL biDI5FPhd4XlCISwozlAlnALpYrc9w0df2GLk= Received: by 10.204.180.75 with SMTP id bt11mr2308994bkb.115.1281300909769; Sun, 08 Aug 2010 13:55:09 -0700 (PDT) Received: from [192.168.1.121] (chello089077019226.chello.pl [89.77.19.226]) by mx.google.com with ESMTPS id s34sm2639676bkk.1.2010.08.08.13.55.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 08 Aug 2010 13:55:07 -0700 (PDT) Message-ID: <4C5F19A9.8020907@gmail.com> Date: Sun, 08 Aug 2010 22:55:05 +0200 From: Andrzej Zawadzki User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100630 Lightning/1.0b1 Icedove/3.0.5 MIME-Version: 1.0 To: Tom Lane CC: Scott Marlowe , Craig James , pgsql-admin@postgresql.org Subject: Re: password administration References: <20100805200454.17A64632749@mail.postgresql.org> <4C5B1D25.2060906@emolecules.com> <29695.1281041681@sss.pgh.pa.us> In-Reply-To: <29695.1281041681@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8 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/54 X-Sequence-Number: 35303 On 05.08.2010 22:54, Tom Lane wrote: > Scott Marlowe writes: > >> On Thu, Aug 5, 2010 at 2:20 PM, Craig James wrote: >> >>> A better solution is to implement a password-strength algorithm and require >>> people to select decent passwords to begin with. >>> > >> Exactly. If you allow simpler passwords that have to be changed you >> get things like: >> > >> ilovemywife22 md5: b845aec254d018d118fe52c46ee8c98c >> > >> changed to >> > >> ilovemywife23 md5: 8c2b59e4d961478e3a9d5bd94979f329 >> > >> You can't tell how close they are by the md5. If you try to prevent >> people from reusing similar passwords, then you have to store either >> the previous passwords (bad security) or something like a soundex of >> the previous password (also bad security.) >> > A place I know but won't name has a policy of storing your last five > passwords (hopefully in md5'd form, but I don't actually know that) and > not letting you reuse those. Of course this merely encourages people to > use a cycle of six or so passwords, like something they can remember > with one digit tagged on. > Hi! Such a policy is in force in my country (Poland) but only if system contains personal data. (government law) 8 or more characters - 2 capital letters, 2 digits And... sometimes this is pain in the... but we don't have a choice. TIP: you don't need 6 passwords - just 2 - with different one character ;-) -- Andrzej Zawadzki