On 11/15/2012 04:40 PM, Lukasz Brodziak wrote: > Hi, > > As far as I know there is no such parameter in PG. If you use PG as a > database for your program you can implement the feature in the > appplication by logging the failed logins in separate table(or the one > holding application users and their passwords) and then disable login > for the user if number of failures is bigger than specified value. > Another way is to create a function in postgresql which will check > failed login count and if the attempts go bigger than specified number > it will run a REVOKE on the user role thus disabling login. Then admin > will have to run GRANT for the user manually. Another option would be to monitor syslog or the csvlog and lock the user out by changing their password or revoking CONNECT rights if they trip the threshold. It wouldn't be as responsive to high-rate brute forcing attempts but your IDS should be handing those already. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin