passwordcheck: Log cracklib diagnostics

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: passwordcheck: Log cracklib diagnostics
Date: 2020-08-25 10:20:21
Message-ID: f7266133-618a-0adc-52ef-f43c78806b0e@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

A user tried to use the cracklib build-time option of the passwordcheck
module. This failed, as it turned out because there was no dictionary
installed in the right place, but the error was not properly reported,
because the existing code just throws away the error message from
cracklib. Attached is a patch that changes this by logging any error
message returned from the cracklib call.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment Content-Type Size
0001-passwordcheck-Log-cracklib-diagnostics.patch text/plain 1.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gavin Flower 2020-08-25 10:57:02 Re: Hybrid Hash/Nested Loop joins and caching results from subplans
Previous Message Anastasia Lubennikova 2020-08-25 10:14:29 [PATCH] Automatic HASH and LIST partition creation