1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>F.2. auth_delay — pause on authentication failure</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /><link rel="prev" href="amcheck.html" title="F.1. amcheck — tools to verify table and index consistency" /><link rel="next" href="auto-explain.html" title="F.3. auto_explain — log execution plans of slow queries" /></head><body id="docContent" class="container-fluid col-10"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">F.2. auth_delay — pause on authentication failure</th></tr><tr><td width="10%" align="left"><a accesskey="p" href="amcheck.html" title="F.1. amcheck — tools to verify table and index consistency">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="contrib.html" title="Appendix F. Additional Supplied Modules and Extensions">Up</a></td><th width="60%" align="center">Appendix F. Additional Supplied Modules and Extensions</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 18.0 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="auto-explain.html" title="F.3. auto_explain — log execution plans of slow queries">Next</a></td></tr></table><hr /></div><div class="sect1" id="AUTH-DELAY"><div class="titlepage"><div><div><h2 class="title" style="clear: both">F.2. auth_delay — pause on authentication failure <a href="#AUTH-DELAY" class="id_link">#</a></h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="sect2"><a href="auth-delay.html#AUTH-DELAY-CONFIGURATION-PARAMETERS">F.2.1. Configuration Parameters</a></span></dt><dt><span class="sect2"><a href="auth-delay.html#AUTH-DELAY-AUTHOR">F.2.2. Author</a></span></dt></dl></div><a id="id-1.11.7.12.2" class="indexterm"></a><p>
3 <code class="filename">auth_delay</code> causes the server to pause briefly before
4 reporting authentication failure, to make brute-force attacks on database
5 passwords more difficult. Note that it does nothing to prevent
6 denial-of-service attacks, and may even exacerbate them, since processes
7 that are waiting before reporting authentication failure will still consume
10 In order to function, this module must be loaded via
11 <a class="xref" href="runtime-config-client.html#GUC-SHARED-PRELOAD-LIBRARIES">shared_preload_libraries</a> in <code class="filename">postgresql.conf</code>.
12 </p><div class="sect2" id="AUTH-DELAY-CONFIGURATION-PARAMETERS"><div class="titlepage"><div><div><h3 class="title">F.2.1. Configuration Parameters <a href="#AUTH-DELAY-CONFIGURATION-PARAMETERS" class="id_link">#</a></h3></div></div></div><div class="variablelist"><dl class="variablelist"><dt><span class="term">
13 <code class="varname">auth_delay.milliseconds</code> (<code class="type">integer</code>)
14 <a id="id-1.11.7.12.5.2.1.1.3" class="indexterm"></a>
16 The number of milliseconds to wait before reporting an authentication
17 failure. The default is 0.
18 </p></dd></dl></div><p>
19 These parameters must be set in <code class="filename">postgresql.conf</code>.
20 Typical usage might be:
21 </p><pre class="programlisting">
23 shared_preload_libraries = 'auth_delay'
25 auth_delay.milliseconds = '500'
26 </pre></div><div class="sect2" id="AUTH-DELAY-AUTHOR"><div class="titlepage"><div><div><h3 class="title">F.2.2. Author <a href="#AUTH-DELAY-AUTHOR" class="id_link">#</a></h3></div></div></div><p>
27 KaiGai Kohei <code class="email"><<a class="email" href="mailto:kaigai@ak.jp.nec.com">kaigai@ak.jp.nec.com</a>></code>
28 </p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="amcheck.html" title="F.1. amcheck — tools to verify table and index consistency">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="contrib.html" title="Appendix F. Additional Supplied Modules and Extensions">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="auto-explain.html" title="F.3. auto_explain — log execution plans of slow queries">Next</a></td></tr><tr><td width="40%" align="left" valign="top">F.1. amcheck — tools to verify table and index consistency </td><td width="20%" align="center"><a accesskey="h" href="index.html" title="PostgreSQL 18.0 Documentation">Home</a></td><td width="40%" align="right" valign="top"> F.3. auto_explain — log execution plans of slow queries</td></tr></table></div></body></html>