passwordcheck_cracklib
passwordcheck_cracklib : Strengthen PostgreSQL user password checks with cracklib
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 7000 | passwordcheck_cracklib | passwordcheck_cracklib | 3.2.1 |
SEC | LGPL-2.1 | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --sL--- | No | Yes | Yes | No | no | no |
| Relationships | |
|---|---|
| See Also | pg_pwhash passwordcheck credcheck passwordpolicy chkpass pg_enigma column_encrypt |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 3.2.1 |
18 17 16 15 14 | passwordcheck_cracklib |
- |
| RPM | PIGSTY | 3.2.1 |
18 17 16 15 14 | passwordcheck_cracklib_$v |
cracklib-dicts |
| DEB | PIGSTY | 3.2.1 |
18 17 16 15 14 | postgresql-$v-passwordcheck-cracklib |
cracklib-runtime, libcrack2 |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| el8.aarch64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| el9.x86_64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| el9.aarch64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| el10.x86_64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| el10.aarch64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| d12.x86_64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| d12.aarch64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| d13.x86_64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| d13.aarch64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| u22.x86_64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| u22.aarch64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| u24.x86_64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| u24.aarch64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| u26.x86_64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| u26.aarch64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
Source
github.com/devrimgunduz/passwordcheck_cracklib
passwordcheck_cracklib-3.2.1.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Config this extension to shared_preload_libraries:
This extension does not need CREATE EXTENSION DDL command
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.