passwordcheck: Log cracklib diagnostics

Peter Eisentraut <peter@eisentraut.org>

Commit: 924123a87f40c12063a2bb2500805447cddc02a3
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2020-08-28T06:18:24Z
Releases: 14.0
passwordcheck: Log cracklib diagnostics

When calling cracklib to check the password, the diagnostic from
cracklib was thrown away.  This would hide essential information such
as no dictionary being installed.  Change this to show the cracklib
error message using errdetail_log().

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Laurenz Albe <laurenz.albe@cybertec.at>
Discussion: https://www.postgresql.org/message-id/flat/f7266133-618a-0adc-52ef-f43c78806b0e%402ndquadrant.com

Files

PathChange+/−
contrib/passwordcheck/passwordcheck.c modified +6 −2

Discussion