mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
usermngr: fix passwdqc options
(cherry picked from commit 350ced4c32)
920d847d usermngr: Fix libpasswdqc options
Co-authored-by: Suvendhu Hansa <suvendhu.hansa@iopsys.eu>
This commit is contained in:
parent
95c7cb447b
commit
3da4280752
1 changed files with 3 additions and 1 deletions
|
|
@ -112,6 +112,8 @@ build_pam_passwdqc_line() {
|
||||||
base="$base $k=$v"
|
base="$base $k=$v"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
base="$base match=0"
|
||||||
|
|
||||||
echo "$base"
|
echo "$base"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -141,7 +143,7 @@ update_password() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
write_line "$tmp_file" "password [success=1 default=ignore] pam_unix.so obscure sha512"
|
write_line "$tmp_file" "password [success=1 default=ignore] pam_unix.so sha512"
|
||||||
write_line "$tmp_file" ""
|
write_line "$tmp_file" ""
|
||||||
write_line "$tmp_file" "password requisite pam_deny.so"
|
write_line "$tmp_file" "password requisite pam_deny.so"
|
||||||
write_line "$tmp_file" "password required pam_permit.so"
|
write_line "$tmp_file" "password required pam_permit.so"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue