Re: [GENERAL] Auth problem in pg_hdba.conf

From: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>
To: 'Bruce Momjian' <pgman(at)candle(dot)pha(dot)pa(dot)us>, Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
Cc: Uros Gruber <uros(at)sir-mag(dot)com>, PostgreSQL odbc list <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: [GENERAL] Auth problem in pg_hdba.conf
Date: 2002-04-28 19:50:53
Message-ID: 214E9C0A75426D47A876A2FD8A07426E9735@salem.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

> -----Original Message-----
> From: Bruce Momjian [mailto:pgman(at)candle(dot)pha(dot)pa(dot)us]
> Sent: 28 April 2002 00:26
> To: Hiroshi Inoue
> Cc: Uros Gruber; PostgreSQL odbc list
> Subject: Re: [ODBC] [GENERAL] Auth problem in pg_hdba.conf
>
>
> Hiroshi Inoue wrote:
> > > > >> Hi!
> > > > >>
> > > > >> I wan't to use md5 passwords so i set in pg_hba.conf
> > > > >>
> > > > >>
> > > > >> host all 0.0.0.0 0.0.0.0 md5
> > > > >>
> > > > >> Then i add some users with PGAdminII and when i check in
> > > > >> pg_shadow there were md5 hashes like this
> > > > >>
> > > > >> md5053b5de16e........................
> > > > >>
> > > > >> When i try to connect with that user it failed with
> error wrong
> > > > >> password.
> >
> > Just a confirmation.
> > Did you use the original password not the above md5053b5de... ?
>
> Also, is the user using CREATE/ALTER USER to set the password
> rather than updating pg_shadow. If they are updating
> pg_shadow, I assume they are prepending 'md5' to the string.
>
> Also, does md5 work from psql?

From the user's description, he's using pgAdmin with the 'Use encrypted
passwords when possible' option. If so, pgAdmin will use CREATE/ALTER USER
xxxx WITH ENCRYPTED PASSWORD 'password' syntax.

What I don't remember though (and can't check right now) is whether the
current version shipped with psqlOBDC 07.01.0009 or later (which is required
to use MD5 passwords).

Regards, Dave.

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Hiroshi Inoue 2002-04-29 02:29:06 Re: [GENERAL] Auth problem in pg_hdba.conf
Previous Message Bruce Momjian 2002-04-27 23:26:18 Re: [GENERAL] Auth problem in pg_hdba.conf