You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
linux-infosec-setupper/test_back_pwquality.sh

18 lines
372 B
Bash

#!/bin/bash
failed="${failed:-0}"
set -x
set -e
TESTING=1
. ./common.sh
. ./back_pwquality.sh
! _mk_pwquality_conf --minclass STRING 1>/dev/null || failed="$((++failed))"
_mk_pwquality_conf --usercheck 1 1>/dev/null || failed="$((++failed))"
! _mk_pwquality_conf --enforcing 1 --retry --usersubstr 1>/dev/null || failed="$((++failed))"
echo "$failed"
exit "$failed"