pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
MS Access and field-level permissions?
7+ messages / 4 participants
[nested] [flat]

* MS Access and field-level permissions?
@ 2010-08-17 22:50 Benjamin Smith <lists@benjamindsmith.com>
  2010-08-17 23:04 ` Re: MS Access and field-level permissions? Stephen Frost <sfrost@snowman.net>
  2010-08-18 14:21 ` Re: MS Access and field-level permissions? Richard Broersma <richard.broersma@gmail.com>
  2010-08-18 22:23 ` Re: MS Access and field-level permissions? Richard Broersma <richard.broersma@gmail.com>
  0 siblings, 3 replies; 7+ messages in thread

From: Benjamin Smith @ 2010-08-17 22:50 UTC (permalink / raw)
  To: pgsql-odbc

Ok, now I have another issue... 

We're using field level permissions to restrict what data is accessible over 
ODBC - we're enabling SELECT only and on a restrictive set of fields. But, when 
we try to link up with MS Access, none of the fields are populated. You can see 
the fields, but never the content of the fields. 

Similarly, with this configuration, via psql when I run "select * from table" 
where I don't have permissions to all fields in the table, I get a "Permission 
denied" error rather than any content. 

This may be a PG issue and not an ODBC issue, but Filemaker Pro works fine with 
the restrictive permissions, MS Access is where things break. 

ideas? 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: MS Access and field-level permissions?
  2010-08-17 22:50 MS Access and field-level permissions? Benjamin Smith <lists@benjamindsmith.com>
@ 2010-08-17 23:04 ` Stephen Frost <sfrost@snowman.net>
  2010-08-17 23:19   ` Re: MS Access and field-level permissions? Sufficool, Stanley <ssufficool@rov.sbcounty.gov>
  2 siblings, 1 reply; 7+ messages in thread

From: Stephen Frost @ 2010-08-17 23:04 UTC (permalink / raw)
  To: Benjamin Smith <lists@benjamindsmith.com>; +Cc: pgsql-odbc

* Benjamin Smith (lists@benjamindsmith.com) wrote:
> This may be a PG issue and not an ODBC issue, but Filemaker Pro works fine with 
> the restrictive permissions, MS Access is where things break. 

It's actually a SQL spec requirement..

> ideas? 

You should be able to create queries in access against just the fields
the user(s) have access to against the linked table (I'd hope anyway,
but I'm not an Access expert).  An alternative would be to create views
that only pull through the columns you want visible to your Access
users.

	Thanks,

		Stephen

Attachments:

  signature.asc (application/pgp-signature, 196B) download

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: MS Access and field-level permissions?
  2010-08-17 22:50 MS Access and field-level permissions? Benjamin Smith <lists@benjamindsmith.com>
  2010-08-17 23:04 ` Re: MS Access and field-level permissions? Stephen Frost <sfrost@snowman.net>
@ 2010-08-17 23:19   ` Sufficool, Stanley <ssufficool@rov.sbcounty.gov>
  0 siblings, 0 replies; 7+ messages in thread

From: Sufficool, Stanley @ 2010-08-17 23:19 UTC (permalink / raw)
  To: Stephen Frost <sfrost@snowman.net>; Benjamin Smith <lists@benjamindsmith.com>; +Cc: pgsql-odbc

Access SQL Passthrough queries should accomplish this.

>-----Original Message-----
>From: pgsql-odbc-owner@postgresql.org
>[mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Stephen Frost
>Sent: Tuesday, August 17, 2010 4:04 PM
>To: Benjamin Smith
>Cc: pgsql-odbc@postgresql.org
>Subject: Re: [ODBC] MS Access and field-level permissions?
>
>
>* Benjamin Smith (lists@benjamindsmith.com) wrote:
>> This may be a PG issue and not an ODBC issue, but Filemaker
>Pro works
>> fine with
>> the restrictive permissions, MS Access is where things break.
>
>It's actually a SQL spec requirement..
>
>> ideas?
>
>You should be able to create queries in access against just
>the fields the user(s) have access to against the linked table
>(I'd hope anyway, but I'm not an Access expert).  An
>alternative would be to create views that only pull through
>the columns you want visible to your Access users.
>
>       Thanks,
>
>               Stephen
>



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: MS Access and field-level permissions?
  2010-08-17 22:50 MS Access and field-level permissions? Benjamin Smith <lists@benjamindsmith.com>
@ 2010-08-18 14:21 ` Richard Broersma <richard.broersma@gmail.com>
  2 siblings, 0 replies; 7+ messages in thread

From: Richard Broersma @ 2010-08-18 14:21 UTC (permalink / raw)
  To: Benjamin Smith <lists@benjamindsmith.com>; +Cc: pgsql-odbc

On Tue, Aug 17, 2010 at 3:50 PM, Benjamin Smith
<lists@benjamindsmith.com> wrote:

> We're using field level permissions to restrict what data is accessible over
> ODBC - we're enabling SELECT only and on a restrictive set of fields. But, when
> we try to link up with MS Access, none of the fields are populated. You can see
> the fields, but never the content of the fields.

I've never tried to setup field level permissions on access linked
tables before, so this is news to me.  However, I wonder if this
behavior is a result of the way MS-Access implements optimistic
locking.  I'll have to do more digging on this subject.


> Similarly, with this configuration, via psql when I run "select * from table"
> where I don't have permissions to all fields in the table, I get a "Permission
> denied" error rather than any content.

This is correct.  This is the way it is documented to work since '*'
expands to list every field of the set.

-- 
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: MS Access and field-level permissions?
  2010-08-17 22:50 MS Access and field-level permissions? Benjamin Smith <lists@benjamindsmith.com>
@ 2010-08-18 22:23 ` Richard Broersma <richard.broersma@gmail.com>
  2010-08-18 23:19   ` Re: MS Access and field-level permissions? Benjamin Smith <lists@benjamindsmith.com>
  2 siblings, 1 reply; 7+ messages in thread

From: Richard Broersma @ 2010-08-18 22:23 UTC (permalink / raw)
  To: Benjamin Smith <lists@benjamindsmith.com>; +Cc: pgsql-odbc

On Tue, Aug 17, 2010 at 3:50 PM, Benjamin Smith
<lists@benjamindsmith.com> wrote:

> We're using field level permissions to restrict what data is accessible over
> ODBC - we're enabling SELECT only and on a restrictive set of fields. But, when
> we try to link up with MS Access, none of the fields are populated. You can see
> the fields, but never the content of the fields.

If you have select rights on every field in the table, it should
display provided you also grant select on xmin which the odbc driver
is also calling if you've configured it that way.


-- 
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: MS Access and field-level permissions?
  2010-08-17 22:50 MS Access and field-level permissions? Benjamin Smith <lists@benjamindsmith.com>
  2010-08-18 22:23 ` Re: MS Access and field-level permissions? Richard Broersma <richard.broersma@gmail.com>
@ 2010-08-18 23:19   ` Benjamin Smith <lists@benjamindsmith.com>
  2010-08-19 00:09     ` Re: MS Access and field-level permissions? Richard Broersma <richard.broersma@gmail.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Benjamin Smith @ 2010-08-18 23:19 UTC (permalink / raw)
  To: pgsql-odbc

On Wednesday, August 18, 2010 03:23:42 pm you wrote:
> > We're using field level permissions to restrict what data is accessible
> > over ODBC - we're enabling SELECT only and on a restrictive set of
> > fields. But, when we try to link up with MS Access, none of the fields
> > are populated. You can see the fields, but never the content of the
> > fields.
> 
> If you have select rights on every field in the table, it should
> display provided you also grant select on xmin which the odbc driver
> is also calling if you've configured it that way.
> 

How would I go about configuring it that way? I don't see "xmin" or anything 
resembling that anywhere in the ODBC config options... 

Thanks, 
Ben 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: MS Access and field-level permissions?
  2010-08-17 22:50 MS Access and field-level permissions? Benjamin Smith <lists@benjamindsmith.com>
  2010-08-18 22:23 ` Re: MS Access and field-level permissions? Richard Broersma <richard.broersma@gmail.com>
  2010-08-18 23:19   ` Re: MS Access and field-level permissions? Benjamin Smith <lists@benjamindsmith.com>
@ 2010-08-19 00:09     ` Richard Broersma <richard.broersma@gmail.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Richard Broersma @ 2010-08-19 00:09 UTC (permalink / raw)
  To: Benjamin Smith <lists@benjamindsmith.com>; +Cc: pgsql-odbc

On Wed, Aug 18, 2010 at 4:19 PM, Benjamin Smith
<lists@benjamindsmith.com> wrote:

> How would I go about configuring it that way? I don't see "xmin" or anything
> resembling that anywhere in the ODBC config options...

this xmin column which is described here:
http://www.postgresql.org/docs/9.0/static/datatype-oid.html

is used by the odbc driver when you select the config option Row
Versioning.  When row versioning is set in the driver, the driver also
queries each rows xmin value to determine versioning information.  If
you don't have permission to it, PostgreSQL will throw an access
violation error.

-- 
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2010-08-19 00:09 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-08-17 22:50 MS Access and field-level permissions? Benjamin Smith <lists@benjamindsmith.com>
2010-08-17 23:04 ` Stephen Frost <sfrost@snowman.net>
2010-08-17 23:19   ` Sufficool, Stanley <ssufficool@rov.sbcounty.gov>
2010-08-18 14:21 ` Richard Broersma <richard.broersma@gmail.com>
2010-08-18 22:23 ` Richard Broersma <richard.broersma@gmail.com>
2010-08-18 23:19   ` Benjamin Smith <lists@benjamindsmith.com>
2010-08-19 00:09     ` Richard Broersma <richard.broersma@gmail.com>

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