auth_delay
pause briefly before reporting authentication failure
auth_delay · pause briefly before reporting authentication failure
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 7970 | auth_delay | auth_delay | - | SEC | PostgreSQL | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --sL--- | No | Yes | Yes | No | no | no |
| Relationships | |
|---|---|
| See Also | pg_session_jwt login_hook set_user pg_auth_mon pgjwt pg_oidc_validator oidc_validator pg_permissions pgaudit |
Packages
| PG19 | PG18 | PG17 | PG16 | PG15 |
|---|---|---|---|---|
| - | - | - | - | - |
This contrib extension ships with PostgreSQL.
Install
Config this extension to shared_preload_libraries:
This extension does not need CREATE EXTENSION DDL command
Usage
auth_delay pauses the server briefly before reporting authentication failures, making brute-force password attacks more difficult.
Configuration
Add to postgresql.conf:
Configuration Parameters
| Parameter | Default | Description |
|---|---|---|
auth_delay.milliseconds | 0 | Milliseconds to wait before reporting auth failure |
Notes
- Must be loaded via
shared_preload_libraries - Does not prevent denial-of-service attacks (waiting processes still hold connection slots)
- No
CREATE EXTENSIONis required – this is a shared library module only