Re: How to allow users to log on only from my application - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: How to allow users to log on only from my application
Date
Msg-id 45BE9164.5020007@iol.ie
Whole thread Raw
In response to How to allow users to log on only from my application not from pgadmin  ("Andrus" <kobruleht2@hot.ee>)
Responses Re: How to allow users to log on only from my application
List pgsql-general
Andrus wrote:

> My application implements field and row level security.
> I have custom table of users where user privileges are described.
>
> However user can login directly to database using pgAdmin. This bypasses
> the security.
>
> How to allow users to login only from my application ?
> I think I must create server-side pgsql procedure for login validation.

What role are your users using to login via PgAdmin? Why not simply deny
them access in pg_hba.conf?

Ray.


---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
---------------------------------------------------------------

pgsql-general by date:

Previous
From: Michael Glaesemann
Date:
Subject: Re: PostgreSQL 9.0
Next
From: Rich Shepard
Date:
Subject: Re: PostgreSQL 9.0