Re: Keystone auth in PostgreSQL - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Keystone auth in PostgreSQL
Date
Msg-id 21012.1331863423@sss.pgh.pa.us
Whole thread Raw
In response to Re: Keystone auth in PostgreSQL  (Daniel Farina <daniel@heroku.com>)
List pgsql-hackers
Daniel Farina <daniel@heroku.com> writes:
> On Thu, Mar 15, 2012 at 6:38 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Our standard answer when someone asks for $random-auth-method is to
>> suggest that they find a PAM module for it and use PAM.  I wouldn't
>> want to claim that PAM is a particularly great interface for this
>> sort of thing, but it's out there and I don't know of any serious
>> competition.

> I considered writing a PAM module to do some stuff at one time (to try
> to solve the two-passwords-for-a-user problem), but the non-intrinsic
> complexity to perform pretty simple tasks in the whole thing is pretty
> terrible -- it ended up being more attractive to do fairly ugly role
> mangling in Postgres's own authentication system.  And, like you, I
> don't know of any serious competition to PAM in performing simple
> authentication delegations.

Yeah, I've only had to touch our PAM interface a couple of times, but
each time I came away thinking "my goodness, that's ugly and over-
complicated".

I'm not volunteering to build something better, though.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Daniel Farina
Date:
Subject: Re: Keystone auth in PostgreSQL
Next
From: Bruce Momjian
Date:
Subject: Re: foreign key locks, 2nd attempt