pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Jorgensen <jorgens@coho.net>
To: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Cc: Philippe Lang <philippe.lang@attiksystem.ch>
Subject: Re: Client UI, ODBC, PG & permissions
Date: Thu, 25 Mar 2004 01:13:52 -0800
Message-ID: <01C41206.71FD5CB0.jorgens@coho.net> (raw)

Generally, I use the back-end security and give each user their own copy of 
the front-end, and all the links to tables and views are created with the 
password saved, so the user won't be asked for a logon every time.

You can use any combination of Access and network/filesystem security to 
ensure that each user is the only one with access to their own front-end. 
 For deployment, you can send out the front-end linked with the logon of a 
user with minimum permissions, and have a re-link routine that lets the 
user enter the logon information to be saved with the links.  After 
re-linking views from code, you need to execute DDL queries to create 
virtual primary keys on views so Access can query them efficiently, and so 
it will allow updates via recordsets (e.g. the recordset behind a form). 
 The DDL is in exactly the same format as if you were simply creating a 
normal primary key on a table.

If you need to block access to a particular field, deny the user access to 
the table, and give them access via a view that does not include the field.

On Wednesday, March 24, 2004 11:59 PM, Philippe Lang 
[SMTP:philippe.lang@attiksystem.ch] wrote:
> Hello,
>
> I would be interested in knowing how you deal with permissions in your
> ODBC applications. Mine is based on a thin Access client that accesses
> Postgresql remote tables and stored procedures through ODBC.
>
> I have already granted permissions to users based on their specific ODBC
> login and password. Depending on the group they are member of, they
> receive either SELECT, INSERT, UPDATE or DELETE rights on the table.
> This works fine.
>
> Now, the problem is when you have to adapt the UI in order to show the
> user he won't be able to update a form, for example. At the moment, the
> user only know when he tries to commit his changes that he shouldn't
> have tried to. Another problem is when a certain field from a table
> shouldn't be visible to certain users... How to deal with that?
>
> I have thought of different "home-made" security systems, where I deal
> with users in my database directly, instead of using ONLY the PG
> security.
>
> How do you manage permissions in your applications? Is it possible to
> read the permissions a user has on a specific table from the client, and
> adapt the UI accordingly?
>
> Thanks
>
> Philippe Lang
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faqs/FAQ.html



view thread (3+ messages)  latest in thread

Message-ID: <01C41206.71FD5CB0.jorgens@coho.net>
Permalink:  ../01C41206.71FD5CB0.jorgens@coho.net/
Also on:    postgresql.org/message-id/01C41206.71FD5CB0.jorgens@coho.net

 · 

reply

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-odbc@postgresql.org
  Cc: jorgens@coho.net, philippe.lang@attiksystem.ch
  Subject: Re: Client UI, ODBC, PG & permissions
  In-Reply-To: <01C41206.71FD5CB0.jorgens@coho.net>
  References: <01C41206.71FD5CB0.jorgens@coho.net>

* 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