Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 85FFF2E00BE for ; Mon, 18 Feb 2008 15:19:07 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 56111-01-2 for ; Mon, 18 Feb 2008 15:19:00 -0400 (AST) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183]) by postgresql.org (Postfix) with ESMTP id 133F72E011A for ; Mon, 18 Feb 2008 15:15:29 -0400 (AST) Received: by wa-out-1112.google.com with SMTP id m38so3693351waf.5 for ; Mon, 18 Feb 2008 11:15:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=//fqofYmyNN8/Ti6SiuEFs/6N6r5Zu9fozWKoV3421E=; b=rAp+YO+DUYY01Hrf5cUJqFZcMGBo/NzRracKvV+3/0D/HMMcW8VfYC/KScfbt+o2Ze5+DCu/SwJlSIcanHCCrTm14Saa48KOMobD9Cp9hAO9g6swzHzY+R0AlOIwvMzhoLlJEdjz1SnHmKCJtb3bpo231ov7w2j2G4HXJu9rwb4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=BVFAmYqnl+wD5aYewhPMpLCpndq95tLHJqagMxXnqQjA9GxX05NQo53E9S0i2la++IcwqUrXSA9dx30tQqSc/7Boe5qI2Ru/Lv7PF7lfzEqb/WItX98nZIubpeiRN2ErKgvDhkK1kOftnGODBPsxjFRaIlWYEuClWQtUP8RKayM= Received: by 10.114.123.1 with SMTP id v1mr2344112wac.147.1203362128930; Mon, 18 Feb 2008 11:15:28 -0800 (PST) Received: by 10.114.134.1 with HTTP; Mon, 18 Feb 2008 11:15:28 -0800 (PST) Message-ID: <5764f4b10802181115r26384616od2b74d0958aeded3@mail.gmail.com> Date: Mon, 18 Feb 2008 16:15:28 -0300 From: "Fabio Telles" To: pgsql-admin@postgresql.org Subject: preventing access with psql MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=AWL=0.001 X-Spam-Level: X-Archive-Number: 200802/197 X-Sequence-Number: 28271 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