Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: How to allow users to log on only from my application not from pgadmin


  • From: Bruno Wolff III <bruno(at)wolff(dot)to>
  • To: Andrus <kobruleht2(at)hot(dot)ee>
  • Cc: pgsql-general(at)postgresql(dot)org
  • Subject: Re: How to allow users to log on only from my application not from pgadmin
  • Date: Tue, 30 Jan 2007 13:06:03 -0600
  • Message-id: <20070130190603(dot)GA13616(at)wolff(dot)to>

On Sun, Jan 28, 2007 at 23:46:27 +0200,
  Andrus <kobruleht2(at)hot(dot)ee> 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.

Run the application on a machine you control. Then the application can
authenticate without the users being able to steal or piggyback on its
credentials.



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group