Re: Best practice? Web application: single PostgreSQL - Mailing list pgsql-general

From Keith G. Murphy
Subject Re: Best practice? Web application: single PostgreSQL
Date
Msg-id 40043D5C.30400@mindspring.com
Whole thread Raw
In response to Re: Best practice? Web application: single PostgreSQL  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane wrote:

> "Keith G. Murphy" <keithmur@mindspring.com> writes:
>
>>Hmmm, mightn't it be kind of nice if there were PAM or krb5 maps in
>>addition to ident maps?
>
>
> ISTM the whole point of PAM is that you plug in your desired security
> policy outside of the application.  You shouldn't be asking for more
> security frammishes from Postgres, you should be off coding a PAM module
> that does things exactly the way you want.
>

I believe I see what you mean.  Given the original premise, I imagine
you could have the PAM module do something like:

(1) Authenticate via LDAP using the user's username and password

(2) Look up the "role" name (real PostgreSQL username) via LDAP, using
the username

(3) Tell PostsgreSQL that the user is authenticated under role name.

I really hadn't thought much about how the PAM module might work.
--
Why waste time learning when ignorance is instantaneous?
         -- Hobbes


pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Nested transaction - I am a bank ??
Next
From: Richard Huxton
Date:
Subject: Re: sql insert function