Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 54106634F22 for ; Tue, 6 Apr 2010 18:08:12 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 24266-04 for ; Tue, 6 Apr 2010 21:07:55 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd-17937.dedibox.fr (sd-17937.dedibox.fr [88.191.100.74]) by mail.postgresql.org (Postfix) with ESMTP id 20C15635FDA for ; Tue, 6 Apr 2010 17:23:39 -0300 (ADT) Received: from [192.168.199.26] (ARennes-257-1-31-79.w81-53.abo.wanadoo.fr [81.53.14.79]) by sd-17937.dedibox.fr (Postfix) with ESMTPA id 42EDB3B8F5; Tue, 6 Apr 2010 22:23:38 +0200 (CEST) Message-ID: <4BBB9849.7080207@lelarge.info> Date: Tue, 06 Apr 2010 22:23:37 +0200 From: Guillaume Lelarge User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Francisco Reyes CC: Kevin Crain , pgsql-admin@postgresql.org Subject: Re: Configuration questions References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201004/58 X-Sequence-Number: 34152 Le 06/04/2010 20:45, Francisco Reyes a écrit : > Kevin Crain writes: > >> How do I configure postgres to lock a user's account after X failed >> login attempts, where X is an arbitrary number. > > Don't think there is a way to do that. > Perhaps using an authentication mechanism that supports that and then > using it to connect to Postgres.. > This page may be of interest: > http://www.postgresql.org/docs/current/static/auth-methods.html > Yeah, an external authentication tool can probably do that. The internal ones (password, md5, and crypt) won't. >> Also is there a way to limit the number of concurrent connections on a >> per account basis? > > Don't think there is an option for that either. > Sure, there is one: ALTER ROLE your-user WITH CONNECTION LIMIT x; See http://www.postgresql.org/docs/8.4/interactive/sql-alterrole.html for more details. -- Guillaume. http://www.postgresqlfr.org http://dalibo.com