passwordcheck_cracklib
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
passwordcheck_cracklib | 3.1.0 | SEC | LGPL-2.1 | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 7000 | passwordcheck_cracklib | No | Yes | Yes | No | No | No | - |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | MIXED | 3.1.0 | 1817161514 | passwordcheck_cracklib | - |
| RPM | PGDG | 3.1.0 | 1817161514 | passwordcheck_cracklib_$v | - |
| DEB | PIGSTY | 3.1.0 | 1817161514 | postgresql-$v-passwordcheck-cracklib | - |
Build
You can build the DEB packages for passwordcheck_cracklib using pig build:
Install
You can install passwordcheck_cracklib directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Preload:
Usage
passwordcheck_cracklib: Strengthen PostgreSQL user password checks with cracklib
passwordcheck_cracklib is like the regular PostgreSQL passwordcheck module, except it is built with cracklib for more strict password checks. It checks users’ passwords whenever they are set with CREATE ROLE or ALTER ROLE. If a password is considered too weak, it will be rejected and the command will terminate with an error.
Configuration
Add the library to shared_preload_libraries in postgresql.conf:
Restart PostgreSQL to activate.
How It Works
Once loaded, any CREATE ROLE or ALTER ROLE command that sets a password will have the password checked against cracklib’s dictionary. Weak or easily guessable passwords will be rejected automatically.
No CREATE EXTENSION is required – this is a shared library module only.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)