passwordcheck_cracklib

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.1.0
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_auth_mon
credcheck
pgaudit
login_hook
auth_delay
set_user
sepgsql

Packages

Type Repo Version PG Major Compatibility Package Pattern Dependencies
EXT
MIXED
3.1.0
18
17
16
15
14
passwordcheck_cracklib -
RPM
PGDG
3.1.0
18
17
16
15
14
passwordcheck_cracklib_$v -
DEB
PIGSTY
3.1.0
18
17
16
15
14
postgresql-$v-passwordcheck-cracklib -
Linux / PG PG18 PG17 PG16 PG15 PG14
el8.x86_64
PGDG 3.1.0
PGDG 3.1.0
PGDG 3.0.0
PGDG 3.0.0
PGDG 3.0.0
el8.aarch64
PGDG 3.1.0
PGDG 3.1.0
PGDG 3.0.0
PGDG 3.0.0
PGDG 3.0.0
el9.x86_64
PGDG 3.1.0
PGDG 3.1.0
PGDG 3.0.0
PGDG 3.0.0
PGDG 3.0.0
el9.aarch64
PGDG 3.1.0
PGDG 3.1.0
PGDG 3.0.0
PGDG 3.0.0
PGDG 3.0.0
el10.x86_64
PGDG 3.1.0
PGDG 3.1.0
PGDG 3.1.0
PGDG 3.1.0
PGDG 3.1.0
el10.aarch64
PGDG 3.1.0
PGDG 3.1.0
PGDG 3.1.0
PGDG 3.1.0
PGDG 3.1.0
d12.x86_64
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
d12.aarch64
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
d13.x86_64
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
d13.aarch64
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
u22.x86_64
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
u22.aarch64
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
u24.x86_64
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
u24.aarch64
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
PIGSTY 3.1.0
Package Version OS ORG SIZE File URL
passwordcheck_cracklib_18 3.1.0 el8.x86_64 pgdg 12.3 KiB passwordcheck_cracklib_18-3.1.0-3PGDG.rhel8.x86_64.rpm
passwordcheck_cracklib_18 3.1.0 el8.aarch64 pgdg 12.3 KiB passwordcheck_cracklib_18-3.1.0-3PGDG.rhel8.aarch64.rpm
passwordcheck_cracklib_18 3.1.0 el9.x86_64 pgdg 11.7 KiB passwordcheck_cracklib_18-3.1.0-3PGDG.rhel9.x86_64.rpm
passwordcheck_cracklib_18 3.1.0 el9.aarch64 pgdg 11.4 KiB passwordcheck_cracklib_18-3.1.0-3PGDG.rhel9.aarch64.rpm
passwordcheck_cracklib_18 3.1.0 el10.x86_64 pgdg 12.1 KiB passwordcheck_cracklib_18-3.1.0-3PGDG.rhel10.x86_64.rpm
passwordcheck_cracklib_18 3.1.0 el10.aarch64 pgdg 12.1 KiB passwordcheck_cracklib_18-3.1.0-3PGDG.rhel10.aarch64.rpm
postgresql-18-passwordcheck-cracklib 3.1.0 d12.x86_64 pigsty 17.6 KiB postgresql-18-passwordcheck-cracklib_3.1.0-2PIGSTY~bookworm_amd64.deb
postgresql-18-passwordcheck-cracklib 3.1.0 d12.aarch64 pigsty 17.8 KiB postgresql-18-passwordcheck-cracklib_3.1.0-2PIGSTY~bookworm_arm64.deb
postgresql-18-passwordcheck-cracklib 3.1.0 d13.x86_64 pigsty 17.6 KiB postgresql-18-passwordcheck-cracklib_3.1.0-2PIGSTY~trixie_amd64.deb
postgresql-18-passwordcheck-cracklib 3.1.0 d13.aarch64 pigsty 17.8 KiB postgresql-18-passwordcheck-cracklib_3.1.0-2PIGSTY~trixie_arm64.deb
postgresql-18-passwordcheck-cracklib 3.1.0 u22.x86_64 pigsty 18.5 KiB postgresql-18-passwordcheck-cracklib_3.1.0-2PIGSTY~jammy_amd64.deb
postgresql-18-passwordcheck-cracklib 3.1.0 u22.aarch64 pigsty 18.1 KiB postgresql-18-passwordcheck-cracklib_3.1.0-2PIGSTY~jammy_arm64.deb
postgresql-18-passwordcheck-cracklib 3.1.0 u24.x86_64 pigsty 18.6 KiB postgresql-18-passwordcheck-cracklib_3.1.0-2PIGSTY~noble_amd64.deb
postgresql-18-passwordcheck-cracklib 3.1.0 u24.aarch64 pigsty 18.3 KiB postgresql-18-passwordcheck-cracklib_3.1.0-2PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
passwordcheck_cracklib_17 3.1.0 el8.x86_64 pgdg 12.2 KiB passwordcheck_cracklib_17-3.1.0-2PGDG.rhel8.x86_64.rpm
passwordcheck_cracklib_17 3.1.0 el8.aarch64 pgdg 12.2 KiB passwordcheck_cracklib_17-3.1.0-2PGDG.rhel8.aarch64.rpm
passwordcheck_cracklib_17 3.1.0 el9.x86_64 pgdg 11.6 KiB passwordcheck_cracklib_17-3.1.0-2PGDG.rhel9.x86_64.rpm
passwordcheck_cracklib_17 3.1.0 el9.aarch64 pgdg 11.4 KiB passwordcheck_cracklib_17-3.1.0-2PGDG.rhel9.aarch64.rpm
passwordcheck_cracklib_17 3.1.0 el10.x86_64 pgdg 12.1 KiB passwordcheck_cracklib_17-3.1.0-3PGDG.rhel10.x86_64.rpm
passwordcheck_cracklib_17 3.1.0 el10.aarch64 pgdg 12.1 KiB passwordcheck_cracklib_17-3.1.0-3PGDG.rhel10.aarch64.rpm
postgresql-17-passwordcheck-cracklib 3.1.0 d12.x86_64 pigsty 17.5 KiB postgresql-17-passwordcheck-cracklib_3.1.0-2PIGSTY~bookworm_amd64.deb
postgresql-17-passwordcheck-cracklib 3.1.0 d12.aarch64 pigsty 17.7 KiB postgresql-17-passwordcheck-cracklib_3.1.0-2PIGSTY~bookworm_arm64.deb
postgresql-17-passwordcheck-cracklib 3.1.0 d13.x86_64 pigsty 17.5 KiB postgresql-17-passwordcheck-cracklib_3.1.0-2PIGSTY~trixie_amd64.deb
postgresql-17-passwordcheck-cracklib 3.1.0 d13.aarch64 pigsty 17.8 KiB postgresql-17-passwordcheck-cracklib_3.1.0-2PIGSTY~trixie_arm64.deb
postgresql-17-passwordcheck-cracklib 3.1.0 u22.x86_64 pigsty 18.6 KiB postgresql-17-passwordcheck-cracklib_3.1.0-2PIGSTY~jammy_amd64.deb
postgresql-17-passwordcheck-cracklib 3.1.0 u22.aarch64 pigsty 18.2 KiB postgresql-17-passwordcheck-cracklib_3.1.0-2PIGSTY~jammy_arm64.deb
postgresql-17-passwordcheck-cracklib 3.1.0 u24.x86_64 pigsty 18.5 KiB postgresql-17-passwordcheck-cracklib_3.1.0-2PIGSTY~noble_amd64.deb
postgresql-17-passwordcheck-cracklib 3.1.0 u24.aarch64 pigsty 18.2 KiB postgresql-17-passwordcheck-cracklib_3.1.0-2PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
passwordcheck_cracklib_16 3.0.0 el8.x86_64 pgdg 11.9 KiB passwordcheck_cracklib_16-3.0.0-1.rhel8.1.x86_64.rpm
passwordcheck_cracklib_16 3.0.0 el8.aarch64 pgdg 11.9 KiB passwordcheck_cracklib_16-3.0.0-1.rhel8.1.aarch64.rpm
passwordcheck_cracklib_16 3.0.0 el9.x86_64 pgdg 11.2 KiB passwordcheck_cracklib_16-3.0.0-1.rhel9.1.x86_64.rpm
passwordcheck_cracklib_16 3.0.0 el9.aarch64 pgdg 10.9 KiB passwordcheck_cracklib_16-3.0.0-1.rhel9.1.aarch64.rpm
passwordcheck_cracklib_16 3.1.0 el10.x86_64 pgdg 12.1 KiB passwordcheck_cracklib_16-3.1.0-3PGDG.rhel10.x86_64.rpm
passwordcheck_cracklib_16 3.1.0 el10.aarch64 pgdg 12.1 KiB passwordcheck_cracklib_16-3.1.0-3PGDG.rhel10.aarch64.rpm
postgresql-16-passwordcheck-cracklib 3.1.0 d12.x86_64 pigsty 17.5 KiB postgresql-16-passwordcheck-cracklib_3.1.0-2PIGSTY~bookworm_amd64.deb
postgresql-16-passwordcheck-cracklib 3.1.0 d12.aarch64 pigsty 17.7 KiB postgresql-16-passwordcheck-cracklib_3.1.0-2PIGSTY~bookworm_arm64.deb
postgresql-16-passwordcheck-cracklib 3.1.0 d13.x86_64 pigsty 17.5 KiB postgresql-16-passwordcheck-cracklib_3.1.0-2PIGSTY~trixie_amd64.deb
postgresql-16-passwordcheck-cracklib 3.1.0 d13.aarch64 pigsty 17.8 KiB postgresql-16-passwordcheck-cracklib_3.1.0-2PIGSTY~trixie_arm64.deb
postgresql-16-passwordcheck-cracklib 3.1.0 u22.x86_64 pigsty 18.6 KiB postgresql-16-passwordcheck-cracklib_3.1.0-2PIGSTY~jammy_amd64.deb
postgresql-16-passwordcheck-cracklib 3.1.0 u22.aarch64 pigsty 18.2 KiB postgresql-16-passwordcheck-cracklib_3.1.0-2PIGSTY~jammy_arm64.deb
postgresql-16-passwordcheck-cracklib 3.1.0 u24.x86_64 pigsty 18.5 KiB postgresql-16-passwordcheck-cracklib_3.1.0-2PIGSTY~noble_amd64.deb
postgresql-16-passwordcheck-cracklib 3.1.0 u24.aarch64 pigsty 18.3 KiB postgresql-16-passwordcheck-cracklib_3.1.0-2PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
passwordcheck_cracklib_15 3.0.0 el8.x86_64 pgdg 11.8 KiB passwordcheck_cracklib_15-3.0.0-1.rhel8.x86_64.rpm
passwordcheck_cracklib_15 3.0.0 el8.aarch64 pgdg 11.8 KiB passwordcheck_cracklib_15-3.0.0-1.rhel8.aarch64.rpm
passwordcheck_cracklib_15 3.0.0 el9.x86_64 pgdg 11.1 KiB passwordcheck_cracklib_15-3.0.0-1.rhel9.x86_64.rpm
passwordcheck_cracklib_15 3.0.0 el9.aarch64 pgdg 10.8 KiB passwordcheck_cracklib_15-3.0.0-1.rhel9.aarch64.rpm
passwordcheck_cracklib_15 3.1.0 el10.x86_64 pgdg 12.1 KiB passwordcheck_cracklib_15-3.1.0-3PGDG.rhel10.x86_64.rpm
passwordcheck_cracklib_15 3.1.0 el10.aarch64 pgdg 12.1 KiB passwordcheck_cracklib_15-3.1.0-3PGDG.rhel10.aarch64.rpm
postgresql-15-passwordcheck-cracklib 3.1.0 d12.x86_64 pigsty 17.5 KiB postgresql-15-passwordcheck-cracklib_3.1.0-2PIGSTY~bookworm_amd64.deb
postgresql-15-passwordcheck-cracklib 3.1.0 d12.aarch64 pigsty 17.7 KiB postgresql-15-passwordcheck-cracklib_3.1.0-2PIGSTY~bookworm_arm64.deb
postgresql-15-passwordcheck-cracklib 3.1.0 d13.x86_64 pigsty 17.5 KiB postgresql-15-passwordcheck-cracklib_3.1.0-2PIGSTY~trixie_amd64.deb
postgresql-15-passwordcheck-cracklib 3.1.0 d13.aarch64 pigsty 17.8 KiB postgresql-15-passwordcheck-cracklib_3.1.0-2PIGSTY~trixie_arm64.deb
postgresql-15-passwordcheck-cracklib 3.1.0 u22.x86_64 pigsty 18.6 KiB postgresql-15-passwordcheck-cracklib_3.1.0-2PIGSTY~jammy_amd64.deb
postgresql-15-passwordcheck-cracklib 3.1.0 u22.aarch64 pigsty 18.2 KiB postgresql-15-passwordcheck-cracklib_3.1.0-2PIGSTY~jammy_arm64.deb
postgresql-15-passwordcheck-cracklib 3.1.0 u24.x86_64 pigsty 18.5 KiB postgresql-15-passwordcheck-cracklib_3.1.0-2PIGSTY~noble_amd64.deb
postgresql-15-passwordcheck-cracklib 3.1.0 u24.aarch64 pigsty 18.2 KiB postgresql-15-passwordcheck-cracklib_3.1.0-2PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
passwordcheck_cracklib_14 3.0.0 el8.x86_64 pgdg 11.8 KiB passwordcheck_cracklib_14-3.0.0-1.rhel8.x86_64.rpm
passwordcheck_cracklib_14 2.0.0 el8.x86_64 pgdg 17.4 KiB passwordcheck_cracklib_14-2.0.0-1.rhel8.x86_64.rpm
passwordcheck_cracklib_14 3.0.0 el8.aarch64 pgdg 11.8 KiB passwordcheck_cracklib_14-3.0.0-1.rhel8.aarch64.rpm
passwordcheck_cracklib_14 3.0.0 el9.x86_64 pgdg 11.1 KiB passwordcheck_cracklib_14-3.0.0-1.rhel9.x86_64.rpm
passwordcheck_cracklib_14 2.0.0 el9.x86_64 pgdg 16.7 KiB passwordcheck_cracklib_14-2.0.0-1.rhel9.x86_64.rpm
passwordcheck_cracklib_14 3.0.0 el9.aarch64 pgdg 10.8 KiB passwordcheck_cracklib_14-3.0.0-1.rhel9.aarch64.rpm
passwordcheck_cracklib_14 3.1.0 el10.x86_64 pgdg 12.1 KiB passwordcheck_cracklib_14-3.1.0-3PGDG.rhel10.x86_64.rpm
passwordcheck_cracklib_14 3.1.0 el10.aarch64 pgdg 12.1 KiB passwordcheck_cracklib_14-3.1.0-3PGDG.rhel10.aarch64.rpm
postgresql-14-passwordcheck-cracklib 3.1.0 d12.x86_64 pigsty 17.6 KiB postgresql-14-passwordcheck-cracklib_3.1.0-2PIGSTY~bookworm_amd64.deb
postgresql-14-passwordcheck-cracklib 3.1.0 d12.aarch64 pigsty 17.7 KiB postgresql-14-passwordcheck-cracklib_3.1.0-2PIGSTY~bookworm_arm64.deb
postgresql-14-passwordcheck-cracklib 3.1.0 d13.x86_64 pigsty 17.6 KiB postgresql-14-passwordcheck-cracklib_3.1.0-2PIGSTY~trixie_amd64.deb
postgresql-14-passwordcheck-cracklib 3.1.0 d13.aarch64 pigsty 17.8 KiB postgresql-14-passwordcheck-cracklib_3.1.0-2PIGSTY~trixie_arm64.deb
postgresql-14-passwordcheck-cracklib 3.1.0 u22.x86_64 pigsty 18.6 KiB postgresql-14-passwordcheck-cracklib_3.1.0-2PIGSTY~jammy_amd64.deb
postgresql-14-passwordcheck-cracklib 3.1.0 u22.aarch64 pigsty 18.3 KiB postgresql-14-passwordcheck-cracklib_3.1.0-2PIGSTY~jammy_arm64.deb
postgresql-14-passwordcheck-cracklib 3.1.0 u24.x86_64 pigsty 18.6 KiB postgresql-14-passwordcheck-cracklib_3.1.0-2PIGSTY~noble_amd64.deb
postgresql-14-passwordcheck-cracklib 3.1.0 u24.aarch64 pigsty 18.3 KiB postgresql-14-passwordcheck-cracklib_3.1.0-2PIGSTY~noble_arm64.deb

Source

pig build pkg passwordcheck_cracklib;		# build deb

Install

Make sure PGDG and PIGSTY repo available:

pig repo add pgsql -u   # add both repo and update cache

Install this extension with pig:

pig install passwordcheck_cracklib;		# install via package name, for the active PG version

pig install passwordcheck_cracklib -v 18;   # install for PG 18
pig install passwordcheck_cracklib -v 17;   # install for PG 17
pig install passwordcheck_cracklib -v 16;   # install for PG 16
pig install passwordcheck_cracklib -v 15;   # install for PG 15
pig install passwordcheck_cracklib -v 14;   # install for PG 14

Config this extension to shared_preload_libraries:

shared_preload_libraries = '$libdir/passwordcheck_cracklib';

This extension does not need CREATE EXTENSION DDL command

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:

shared_preload_libraries = '$libdir/passwordcheck_cracklib'

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.

-- This will be rejected if the password is too weak
CREATE ROLE myuser WITH LOGIN PASSWORD 'password123';
-- ERROR: password is easily cracked

-- A strong password will be accepted
CREATE ROLE myuser WITH LOGIN PASSWORD 'X9#kLm$vQ2!pR7';

No CREATE EXTENSION is required – this is a shared library module only.

Last updated on