Re: superusers are members of all roles? - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: superusers are members of all roles?
Date
Msg-id 502ADCFD.3020803@dunslane.net
Whole thread Raw
In response to Re: superusers are members of all roles?  (Michael Braun <michael.braun@fem.tu-ilmenau.de>)
List pgsql-hackers
On 08/14/2012 05:03 PM, Michael Braun wrote:
> Hi,
>
> I've just recently upgraded to postgrsql 9.1 and also hit bug #5763.
> Having +group not match all superusers is essential to be able to assign
> different authentication backends to different superusers with needing
> to edit configuration files on the radius host system. E.g. to be able
> to authenticate some against ldap services and some against the password
> stored in the database, so the superusers can opt into the central
> authentication system if they want to. With the old postgresql version,
> all user managers would only need postgresql tcp access, no access to
> files or similar.
>
> Could the different behaviour (superusers matching all/not all group
> entries in hba.conf) perhaps become a configuration item?
>


This is a feature in the upcoming 9.2. IIRC the consensus was not to 
backport it. There is no point in making it a configuration item, 
really, since the workaround for the old behaviour would be to add the 
superusers explicitly to the required groups. If you're interested and 
want to apply it to your own build, it's pretty much a one line patch: 
See 
<https://github.com/postgres/postgres/commit/94cd0f1ad8af722a48a30a1087377b52ca99d633>

cheers

andrew



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: -Wformat-zero-length
Next
From: Peter Eisentraut
Date:
Subject: Re: TRUE/FALSE vs true/false