From: Michael Fuhr <mike@fuhr.org>
To: Jason Stone <pgsql-admin@dfmm.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: password authentication with external passwd file
Date: Sat, 27 Aug 2005 07:30:49 -0600
Message-ID: <20050827133049.GA59344@winnie.fuhr.org> (raw)
In-Reply-To: <20050827001001.L70885@treehorn.dfmm.org>
References: <20050827001001.L70885@treehorn.dfmm.org>
On Sat, Aug 27, 2005 at 01:31:25AM -0700, Jason Stone wrote:
> I would like to know first, if I'm mistaken, or if external passwd files
> are now specified in some other way, or must be enabled at compile time or
> something like that; ie, am I doing something wrong?
The 7.3 Release Notes have the following items:
* Remove secondary password file capability and pg_password utility (Bruce)
* Add variable db_user_namespace for database-local user names (Bruce)
> If this feature is indeed no longer supported, is there some other way
> that I can allow the same username to have different passwords on
> different databases?
See the documentation for db_user_namespace:
http://www.postgresql.org/docs/8.0/static/runtime-config.html#RUNTIME-CONFIG-CONNECTION-SECURITY> The background is that this is a hosting environment, and each customer is
> given one database to use however they want; different human users should
> be able to create database users with the same username without
> accidentally granting each other rights on their own databases. We
> currently do this by maintaining a password file per user/database, and
> letting users put whatever usernames and passwords they want into the
> password file for their database.
If you use db_user_namespace then you might have to provide an
interface for users to manage the user names in their databases.
One possibility would be to write a set of SECURITY DEFINER functions
that execute the correct CREATE USER, DROP USER, etc. commands.
--
Michael Fuhr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mike@fuhr.org, pgsql-admin@dfmm.org
Subject: Re: password authentication with external passwd file
In-Reply-To: <20050827133049.GA59344@winnie.fuhr.org>
References: <20050827001001.L70885@treehorn.dfmm.org> <20050827133049.GA59344@winnie.fuhr.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox