pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabio Telles <fabio.telles@gmail.com>
To: pgsql-admin@postgresql.org
Subject: preventing access with psql
Date: Mon, 18 Feb 2008 16:15:28 -0300
Message-ID: <5764f4b10802181115r26384616od2b74d0958aeded3@mail.gmail.com> (raw)

I have an application who is client/server instaled with hundred of
users where every user of the aplication have one user registred in
the database. The aplication and PostgreSQL is working fine and we use
some roles to grant access in every object that some groups need to
use.
The problem is that once the user have a role granted to him, he can
connect direct to   the database using psql or any other tool. We
really need to prevent this. If we use an aplication server, I could
limit the access using just one IP on pg_hba.conf, but in this case we
could not do these.

In Oracle, we use the clause 'set role identified by some_password'.
How could I handle these problem. Any clue?

Thanks for any help,
Fabio Telles
-- 
blog: http://www.midstorm.org/~telles/
e-mail / jabber: fabio.telles@gmail.com



view thread (2+ messages)  latest in thread

Message-ID: <5764f4b10802181115r26384616od2b74d0958aeded3@mail.gmail.com>
Permalink:  ../5764f4b10802181115r26384616od2b74d0958aeded3@mail.gmail.com/
Also on:    postgresql.org/message-id/5764f4b10802181115r26384616od2b74d0958aeded3@mail.gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: fabio.telles@gmail.com
  Subject: Re: preventing access with psql
  In-Reply-To: <5764f4b10802181115r26384616od2b74d0958aeded3@mail.gmail.com>

* 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