From 6382b9ae1b91d45076c12586ffd5151bf0e5a134 Mon Sep 17 00:00:00 2001 From: John Klug Date: Wed, 25 Apr 2018 12:38:22 -0500 Subject: Add libpwquality to mLinux4 for commisioning --- recipes-support/libpwquality/files/pam.configure | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 recipes-support/libpwquality/files/pam.configure (limited to 'recipes-support/libpwquality/files/pam.configure') diff --git a/recipes-support/libpwquality/files/pam.configure b/recipes-support/libpwquality/files/pam.configure new file mode 100644 index 0000000..1506d4f --- /dev/null +++ b/recipes-support/libpwquality/files/pam.configure @@ -0,0 +1,13 @@ +diff -Naru orig/etc/pam.d/common-password new/etc/pam.d/common-password +--- orig/etc/pam.d/common-password 2018-04-25 10:26:55.805688250 -0500 ++++ new/etc/pam.d/common-password 2018-04-25 10:27:48.041686704 -0500 +@@ -16,7 +16,8 @@ + # See the pam_unix manpage for other options. + + # here are the per-package modules (the "Primary" block) +-password [success=1 default=ignore] pam_unix.so obscure sha512 ++password requisite pam_pwquality.so retry=3 ++password [success=1 default=ignore] pam_unix.so obscure use_authok try_frist_pass sha512 + # here's the fallback if no module succeeds + password requisite pam_deny.so + # prime the stack with a positive return value if there isn't one already; -- cgit v1.2.3