passwordcheck_cracklib
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
passwordcheck_cracklib | 3.2.1 | SEC | LGPL-2.1 | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 7000 | passwordcheck_cracklib | No | Yes | Yes | No | No | No | - |
Preload-only; requires cracklib dictionaries.
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 3.2.1 | 1817161514 | passwordcheck_cracklib | - |
| RPM | PIGSTY | 3.2.1 | 1817161514 | passwordcheck_cracklib_$v | cracklib-dicts |
| DEB | PIGSTY | 3.2.1 | 1817161514 | postgresql-$v-passwordcheck-cracklib | cracklib-runtime, libcrack2 |
Build
You can build the RPM / 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
Sources:
passwordcheck_cracklib checks passwords supplied through CREATE ROLE and ALTER ROLE with CrackLib. It is a server hook library, with no SQL extension objects.
Enable the Hook
Add it to the existing preload list and restart PostgreSQL:
Do not run CREATE EXTENSION passwordcheck_cracklib. CrackLib’s library and dictionary must be available to the PostgreSQL operating-system account.
Password Checks
Weak plaintext passwords cause an error. The hook checks length, the relationship to the username, character composition, and the CrackLib dictionary. A password passing those checks is not a guarantee of resistance to every attack.
Security Boundary
Dictionary checks require the plaintext password at password-change time. When a client supplies an already hashed password, the module cannot perform full strength checks; its remaining check is whether the password equals the username. Enforce the intended password-change path and protect the connection carrying plaintext passwords.
Existing passwords are not scanned retroactively. The hook also chains to a previously installed password-check hook; review other credential-policy libraries before loading them together.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)