Re: rolcanlogin vs. the flat password file - Mailing list pgsql-hackers

From Michael Paesold
Subject Re: rolcanlogin vs. the flat password file
Date
Msg-id 47130639.9000600@gmx.at
Whole thread Raw
In response to Re: rolcanlogin vs. the flat password file  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> With the attached patch to not drop nologin roles from the flat password
> file, it acts more sanely:
> 
> postgres=# create user foo nologin;
> CREATE ROLE
> postgres=# \c - foo
> Password for user "foo": 
> FATAL:  password authentication failed for user "foo"
> Previous connection kept
> postgres=# alter user foo password 'foo';
> ALTER ROLE
> postgres=# \c - foo
> Password for user "foo": << correct password entered here
> FATAL:  role "foo" is not permitted to log in
> Previous connection kept
> 
> Should we just do this, or is it worth working harder?

IMHO this is exactly what we want. It does only offer more information when 
you already got authentication right and therefore doesn't open an 
information leak.

Not sure about the warning when creating a role with a password but 
nologin. Could be useful.

Best Regards
Michael Paesold


pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: rolcanlogin vs. the flat password file
Next
From: "Marko Kreen"
Date:
Subject: Re: Back-patch support for python 2.5?