X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 08938D1B8A5 for ; Fri, 29 Aug 2003 15:27:38 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 30057-10 for ; Fri, 29 Aug 2003 12:27:06 -0300 (ADT) Received: from smtp2.mail.be.easynet.net (smtp2.mail.be.easynet.net [212.100.160.76]) by svr1.postgresql.org (Postfix) with ESMTP id 7D5B1D1B8E3 for ; Fri, 29 Aug 2003 12:27:03 -0300 (ADT) Received: from bidibule.office.be.easynet.net ([212.100.163.150]) by smtp2.mail.be.easynet.net with esmtp (Exim 4.22) id 19sl8y-0001si-Mo; Fri, 29 Aug 2003 17:26:32 +0200 Received: from rb by bidibule.office.be.easynet.net with local (Exim 3.35 #1 (Debian)) id 19sl8U-00085q-00; Fri, 29 Aug 2003 17:26:02 +0200 Date: Fri, 29 Aug 2003 17:26:02 +0200 From: Raphael Bauduin To: Sam Barnett-Cormack Cc: Raphael Bauduin , pgsql-admin@postgresql.org Subject: Re: wrong password accepted Message-ID: <20030829152602.GA31054@raphael> References: <20030829131240.GA30354@raphael> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/353 X-Sequence-Number: 10073 On Fri, Aug 29, 2003 at 02:22:07PM +0100, Sam Barnett-Cormack wrote: > > On Fri, 29 Aug 2003, Raphael Bauduin wrote: > > > Hi, > > > > this is a strange situation I just discovered on a postgresql > > 7.2.1-2woody2 (Debian as you can see...). I use pg_hba to specify > > password ahtentications for clients. HEre's the line: > > host all 127.0.0.1 255.255.255.0 password pass-file > > > > I just discovered that when I use the correct password to whach I append > > text, it is accepted (though this is not correct...) > > For example, if my password is postgres, the following will also be > > accepted: postgresql, postgresblabla, postgres2 ...... but it will > > reject postgrex eg. > > If the password mechanism uses standard crypt() passwords, then only the > first eight letters count. It just happens that postgres is eight > letters long. > > This has been a public service educated guess. It seems this was a good guess. Thanks for this simple and efficient answer! :-) Raph