Parametrization minimum password lenght

From: Emanuele Musella <emamuse86(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Parametrization minimum password lenght
Date: 2024-11-12 13:41:00
Message-ID: CA+ugDNyYtHOtWCqVD3YkSVYDWD_1fO8Jm_ahsDGA5dXhbDPwrQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

The goal about this patch is to parameterize the minimum password lenght on
users database and apply it on the general code.
The patch is applicable to the master branch.
We already tested it: it build and works as expected and nothing is found
broken,

Settings in postgresql.conf parametrization like following:

shared_preload_libraries = 'passwordcheck'
min_password_lenght = 12

example:

postgres=# create user prova with password 'eftghaki';
ERROR: password is too short
postgres=# create user prova with password 'eftghaki1234';
CREATE ROLE

In attach the file patch.

Best regards

Emanuele Musella & Maurizio Boriani

Attachment Content-Type Size
min_password_length_v1.patch application/octet-stream 1.7 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2024-11-12 13:48:28 Re: Parametrization minimum password lenght
Previous Message Alvaro Herrera 2024-11-12 13:35:23 Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY