pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedwrong password accepted
3+ messages / 2 participants
[nested] [flat]
* wrong password accepted
@ 2003-08-29 13:12 Raphael Bauduin <raphael@be.easynet.net>
2003-08-29 13:22 ` Re: wrong password accepted Sam Barnett-Cormack <s.barnett-cormack@lancaster.ac.uk>
0 siblings, 1 reply; 3+ messages in thread
From: Raphael Bauduin @ 2003-08-29 13:12 UTC (permalink / raw)
To: pgsql-admin
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.
I couldn't reproduce it with postgres 7.3 (self compiled, the problem
above happens with the standard Debian package), but 7.3 doesn't seem to
use a file to store the password (didn't have time to look a lot at 7.3 :(.
Is this a known problem? Did I miss the answer when I browsed the web
and mail archives?
Thanks for your help.
Raph
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: wrong password accepted
2003-08-29 13:12 wrong password accepted Raphael Bauduin <raphael@be.easynet.net>
@ 2003-08-29 13:22 ` Sam Barnett-Cormack <s.barnett-cormack@lancaster.ac.uk>
2003-08-29 15:26 ` Re: wrong password accepted Raphael Bauduin <raphael@be.easynet.net>
0 siblings, 1 reply; 3+ messages in thread
From: Sam Barnett-Cormack @ 2003-08-29 13:22 UTC (permalink / raw)
To: Raphael Bauduin <raphael@be.easynet.net>; +Cc: pgsql-admin
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.
--
Sam Barnett-Cormack
Software Developer | Student of Physics & Maths
UK Mirror Service (http://www.mirror.ac.uk) | Lancaster University
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: wrong password accepted
2003-08-29 13:12 wrong password accepted Raphael Bauduin <raphael@be.easynet.net>
2003-08-29 13:22 ` Re: wrong password accepted Sam Barnett-Cormack <s.barnett-cormack@lancaster.ac.uk>
@ 2003-08-29 15:26 ` Raphael Bauduin <raphael@be.easynet.net>
0 siblings, 0 replies; 3+ messages in thread
From: Raphael Bauduin @ 2003-08-29 15:26 UTC (permalink / raw)
To: Sam Barnett-Cormack <s.barnett-cormack@lancaster.ac.uk>; +Cc: Raphael Bauduin <raphael@be.easynet.net>; pgsql-admin
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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2003-08-29 15:26 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-08-29 13:12 wrong password accepted Raphael Bauduin <raphael@be.easynet.net>
2003-08-29 13:22 ` Sam Barnett-Cormack <s.barnett-cormack@lancaster.ac.uk>
2003-08-29 15:26 ` Raphael Bauduin <raphael@be.easynet.net>
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