From 394b0ad69764f732943d29521d21141b586e2e8a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zolt=C3=A1n=20Felleg?= Date: Sat, 12 Mar 2022 16:46:48 +0100 Subject: [PATCH] Updated fds.in (added password policy settings to the setup scripts). --- sources/fds.in/c3d/firstboot/scripts/10_setupds.sh | 12 ++++++++++++ .../install-data/usr/local/bin/restorefds.sh | 1 + 2 files changed, 13 insertions(+) diff --git a/sources/fds.in/c3d/firstboot/scripts/10_setupds.sh b/sources/fds.in/c3d/firstboot/scripts/10_setupds.sh index 22b77b6..7dfa76c 100755 --- a/sources/fds.in/c3d/firstboot/scripts/10_setupds.sh +++ b/sources/fds.in/c3d/firstboot/scripts/10_setupds.sh @@ -19,3 +19,15 @@ fi dscreate from-file $DATA_PATH/user.inf dsconf user plugin memberof enable +dsconf qqcs pwpolicy set \ + --pwdmustchange on \ + --pwdlockout on \ + --pwdchecksyntax on \ + --pwdminlen 10 \ + --pwdmindigits 1 \ + --pwdminuppers 1 \ + --pwdminlowers 1 \ + --pwdminspecials 1 \ + --pwdmaxrepeats 2 \ + --pwdmincatagories 4 \ + --pwddictcheck on diff --git a/sources/fds.in/c3d/postinstall/install-data/usr/local/bin/restorefds.sh b/sources/fds.in/c3d/postinstall/install-data/usr/local/bin/restorefds.sh index 4da4bfc..50dbee3 100755 --- a/sources/fds.in/c3d/postinstall/install-data/usr/local/bin/restorefds.sh +++ b/sources/fds.in/c3d/postinstall/install-data/usr/local/bin/restorefds.sh @@ -13,6 +13,7 @@ TMP_PATH=$(dirname $RESTORE_BASE) if [ ! -f $POSTINSTALL_SCP_PATH/fds.tar ] then echo "No restore file found, exiting" >&2 + rm --force --recursive $RESTORE_BASE exit 1 fi -- 2.54.0