problems with non-trust authentication methods in 7.3devel?

Started by hubert depesz lubaczewskiabout 24 years ago3 messagesgeneral
Jump to latest

hi
i have strange error.
none (except trust) auythorization methods do work under 7.3devel.
i tried: password, crypt and md5. i set passwords using:
alter user pgdba with password 'aaa';
and
alter user pgdba with encrypted password 'aaa';

none combination works.
in fact (since password is required when starting postmaster) i can not
even start postmaster. what could be the reason?
my machine is intel celeron with linux:

$ rpm -q glibc gcc
glibc-2.2.5-7
gcc-2.95.4-0.20010823.3

what else should i tell for you to be able to help me?

depesz

--
hubert depesz lubaczewski http://www.depesz.pl/
------------------------------------------------------------------------
... vows are spoken to be broken ... [enjoy the silence]
... words are meaningless and forgettable ... [depeche mode]

#2Bruce Momjian
bruce@momjian.us
In reply to: hubert depesz lubaczewski (#1)
Re: problems with non-trust authentication methods in 7.3devel?

Hubert depesz Lubaczewski wrote:

hi
i have strange error.
none (except trust) auythorization methods do work under 7.3devel.
i tried: password, crypt and md5. i set passwords using:
alter user pgdba with password 'aaa';
and
alter user pgdba with encrypted password 'aaa';

none combination works.
in fact (since password is required when starting postmaster) i can not
even start postmaster. what could be the reason?
my machine is intel celeron with linux:

$ rpm -q glibc gcc
glibc-2.2.5-7
gcc-2.95.4-0.20010823.3

what else should i tell for you to be able to help me?

That is strange. I redid the authentication for 7.3 so you may be
seeing a problem there. However, it works fine here on BSD/OS.

OK, I am testing now and am seeing the same failure. Let me work on a
fix right now.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#3Bruce Momjian
bruce@momjian.us
In reply to: hubert depesz lubaczewski (#1)
Re: [GENERAL] problems with non-trust authentication methods in 7.3devel?

Hubert depesz Lubaczewski wrote:

hi
i have strange error.
none (except trust) auythorization methods do work under 7.3devel.
i tried: password, crypt and md5. i set passwords using:
alter user pgdba with password 'aaa';
and
alter user pgdba with encrypted password 'aaa';

none combination works.
in fact (since password is required when starting postmaster) i can not
even start postmaster. what could be the reason?
my machine is intel celeron with linux:

$ rpm -q glibc gcc
glibc-2.2.5-7
gcc-2.95.4-0.20010823.3

what else should i tell for you to be able to help me?

OK, I have applied the following patch to fix the failure. Thanks for
finding this. I had modified the code to handle quoted strings better
and didn't re-test the password code.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Attachments:

/bjm/difftext/plainDownload+27-27