1 <!-- doc/src/sgml/auth-delay.sgml -->
3 <sect1 id=
"auth-delay" xreflabel=
"auth_delay">
4 <title>auth_delay
— pause on authentication failure
</title>
6 <indexterm zone=
"auth-delay">
7 <primary>auth_delay
</primary>
11 <filename>auth_delay
</filename> causes the server to pause briefly before
12 reporting authentication failure, to make brute-force attacks on database
13 passwords more difficult. Note that it does nothing to prevent
14 denial-of-service attacks, and may even exacerbate them, since processes
15 that are waiting before reporting authentication failure will still consume
20 In order to function, this module must be loaded via
21 <xref linkend=
"guc-shared-preload-libraries"/> in
<filename>postgresql.conf
</filename>.
24 <sect2 id=
"auth-delay-configuration-parameters">
25 <title>Configuration Parameters
</title>
30 <varname>auth_delay.milliseconds
</varname> (
<type>integer
</type>)
32 <primary><varname>auth_delay.milliseconds
</varname> configuration parameter
</primary>
37 The number of milliseconds to wait before reporting an authentication
38 failure. The default is
0.
45 These parameters must be set in
<filename>postgresql.conf
</filename>.
46 Typical usage might be:
51 shared_preload_libraries = 'auth_delay'
53 auth_delay.milliseconds = '
500'
57 <sect2 id=
"auth-delay-author">
61 KaiGai Kohei
<email>kaigai@ak.jp.nec.com
</email>