Re: Configuration questions

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Francisco Reyes <lists(at)stringsutils(dot)com>
Cc: Kevin Crain <kevin(dot)crain1(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Configuration questions
Date: 2010-04-06 20:23:37
Message-ID: 4BBB9849.7080207@lelarge.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2010-04-06 20:59:15 Re: dblink_connect is slow
Previous Message Tom Lane 2010-04-06 19:52:44 Re: Configuration questions