Re: [GENERAL] User privileges in web database applications

2006-07-05 Thread Kenneth Downs
Antonis Christofides wrote: But I think that checking user privileges at the database level is better. I think it's simpler and more secure, and if later you also want to create nonweb apps, you won't have any more authentication/privilege headaches. Couldn't agree more. But consider this r

Re: [GENERAL] User privileges in web database applications

2006-06-30 Thread snacktime
Both connection pooling and using the superuser with SET SESSION AUTHORIZATION both have their uses. You might have an application that processes some type of transaction and inserts data into a users schema or table, but where there are no user credentials available. Then you might have a web i

Re: [GENERAL] User privileges in web database applications

2006-06-30 Thread Antonis Christofides
> Right, this is standard operating procedure. But the original poster > mentioned tying the connection to a particular web user/session. In > other words, one connection per user. Maybe I didn't phrase the question correctly, but I think that the answer to my question is, indeed, connection pool

Re: [GENERAL] User privileges in web database applications

2006-06-30 Thread John DeSoi
On Jun 29, 2006, at 5:58 PM, Tim Hart wrote: I'm coming in a bit late to this conversation, so forgive me if I've missed something. Isn't this problem the reason that connection pools were created? In a connection pool, connections are only associated with a particular user for the durat

Re: [GENERAL] User privileges in web database applications

2006-06-29 Thread Tim Hart
I'm coming in a bit late to this conversation, so forgive me if I've missed something. Isn't this problem the reason that connection pools were created? In a connection pool, connections are only associated with a particular user for the duration of a transaction. Once the transaction is complet

Re: [GENERAL] User privileges in web database applications

2006-06-29 Thread John DeSoi
On Jun 29, 2006, at 3:37 AM, Antonis Christofides wrote: The benefit of this solution is that I avoid reconnecting to the database on each request, having instead a persistent connection as user "postgres". But it is also a resource liability. How do you know if the user will make another r

Re: [GENERAL] User privileges in web database applications

2006-06-29 Thread Alvaro Herrera
Antonis Christofides wrote: > But I think that checking user privileges at the database level is > better. I think it's simpler and more secure, and if later you also > want to create nonweb apps, you won't have any more > authentication/privilege headaches. For this reason, in a web app > I've

[GENERAL] User privileges in web database applications

2006-06-29 Thread Antonis Christofides
Hi, Most web database applications I've seen use a system separate from the rdbms's user database for managing user privileges. For example, there may be a "users" table, or there may be external authentication with, say, LDAP. Or, for example, in MoinMoin (an extensible wiki, where apps can be

Re: [GENERAL] User Privileges using dblink

2004-06-23 Thread DeJuan Jackson
ng INFORMIX there is a rather simple solution for this problem, called Synonyms. Regards Karsten -Ursprüngliche Nachricht- Von: Tom Lane [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 22. Juni 2004 16:05 An: Kreißl, Karsten Cc: [EMAIL PROTECTED] Betreff: Re: [GENERAL] User Privileges

Re: [GENERAL] User Privileges using dblink

2004-06-23 Thread Alvaro Herrera
On Wed, Jun 23, 2004 at 09:03:37AM +0200, "Kreißl, Karsten" wrote: > But, under this conditions we must specify username and password > (without encryption!) in the view definition. Every user can read > this information using pgadmin or other tools. It's very simple ! In > our environment the r

Re: [GENERAL] User privileges on sequences

2001-10-17 Thread Peter Eisentraut
Mihai Gheorghiu writes: > Therefore, I have to give users permissions to sequences, just to the > extent that they could add records. What is the minimum set of > privileges for this? You need UPDATE privileges to be able to execute nextval() and currval(). I assume this would include setval() a

Re: [GENERAL] User privileges

2001-10-16 Thread Tom Lane
"Mihai Gheorghiu" <[EMAIL PROTECTED]> writes: > It is possible that a user is a member of more than one group. > Do this user's privileges AND or OR the privileges of each of the two > groups? OR. A user's privileges are always the union of what he has personally and what he has via any group.

[GENERAL] User privileges

2001-10-16 Thread Mihai Gheorghiu
It is possible that a user is a member of more than one group. Do this user's privileges AND or OR the privileges of each of the two groups? Thank you all. ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.

[GENERAL] User privileges on sequences

2001-10-16 Thread Mihai Gheorghiu
I have a db in which users can view and update data only via views. It is my understanding that the privileges of the view/rule creator do not extend to sequences. Therefore, I have to give users permissions to sequences, just to the extent that they could add records. What is the minimum set of p

Re: [GENERAL] User Privileges

2000-12-28 Thread Jens Hartwig
ssage - > From: "Dan Wilson" <[EMAIL PROTECTED]> > To: "Niral Trivedi" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Tuesday, December 26, 2000 7:25 PM > Subject: Re: [GENERAL] User Privileges > > > > For example I have

Re: [GENERAL] User Privileges

2000-12-28 Thread Dan Wilson
rights. Group "developers" has the same privileges. For more details -- http://www.postgresql.org/users-lounge/docs/7.0/user/sql-grant.htm -Dan - Original Message - From: "W. van den Akker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, Decem

Re: [GENERAL] User Privileges

2000-12-27 Thread W. van den Akker
D]>; <[EMAIL PROTECTED]> Sent: Tuesday, December 26, 2000 7:25 PM Subject: Re: [GENERAL] User Privileges > > For example I have 5 tables in database A. And now I want to give > > SELECT/UPDATE/INSERT privileges to a user to all 5 tables. But according > to > > documentat