passwordcheck: Log cracklib diagnostics
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 28 Aug 2020 06:16:32 +0000 (08:16 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 28 Aug 2020 06:18:24 +0000 (08:18 +0200)
commit924123a87f40c12063a2bb2500805447cddc02a3
tree88897bffa1a67a38ed44f05ea81c861623a949c3
parent10564ee02ca380f8d614eabc4e80c5d39ea4edad
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
contrib/passwordcheck/passwordcheck.c