aboutsummaryrefslogtreecommitdiff
path: root/debian/tests
diff options
context:
space:
mode:
authorSam Hartman <hartmans@debian.org>2023-08-16 16:40:20 -0600
committerSam Hartman <hartmans@debian.org>2023-08-16 16:45:04 -0600
commit8708337078144b30c8ce03b506d4cc47020661bb (patch)
tree2eb976d5afc1637ace6ad215beda577763c23276 /debian/tests
parent5d5d1a88a5851679c669162a0b64e29bc56c1d70 (diff)
downloadpam-8708337078144b30c8ce03b506d4cc47020661bb.tar.gz
pam-8708337078144b30c8ce03b506d4cc47020661bb.tar.bz2
pam-8708337078144b30c8ce03b506d4cc47020661bb.zip
Fix pam-auth-update --disable logic error, Closes: #1039873
Diffstat (limited to 'debian/tests')
-rw-r--r--debian/tests/pam-auth-update4
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/tests/pam-auth-update b/debian/tests/pam-auth-update
index e4973bff..d2649f36 100644
--- a/debian/tests/pam-auth-update
+++ b/debian/tests/pam-auth-update
@@ -28,7 +28,11 @@ grep -i rounds /etc/pam.d/common-password &&fail rounds parameter already specif
sed -i -e 's/obscure yescrypt/obscure yescrypt rounds=3/' /etc/pam.d/common-password
grep rounds /etc/pam.d/common-password ||fail sed did not update common password
+( echo get libpam-runtime/profiles |debconf-communicate |grep mkhomedir) || fail mkhomedir not in enabled profiles
+
# Confirm removing mkhomedir preserves rounds parameter
pam-auth-update --disable mkhomedir ||fail pam-auth-update disable failed
+( echo get libpam-runtime/profiles |debconf-communicate |grep mkhomedir) && fail mkhomedir still in profiles
+grep mkhomedir /var/lib/pam/seen || fail mkhomedir removed from seen after disable
grep mkhomedir /etc/pam.d/common-session &&fail pam_mkhomedir not removed
grep rounds /etc/pam.d/common-password || fail rounds parameter not preserved