Skip to content

Commit

Permalink
Merge pull request #25 from jordiprats/master
Browse files Browse the repository at this point in the history
rename facts cracklib
  • Loading branch information
jordiprats authored Apr 5, 2019
2 parents 6a1ba66 + 6df4e7a commit 3fbfef4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
# CHANGELOG

## 0.1.18
## 0.1.20

* renamed **cracklib** facts to **pam_cracklib**

## 0.1.19

* added support for Ubuntu 16.04 and 18.04 to **pam::cracklib** using libpam-pwquality

## 0.1.18

* Added support for SLES 12.4

## 0.1.17
Expand Down
20 changes: 10 additions & 10 deletions lib/facter/eyp_cracklib_facts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,64 +16,64 @@
dcredit = Facter::Util::Resolution.exec('grep ^dcredit /etc/security/pwquality.conf | awk \'{ print $NF }\'').to_s

unless minlen.nil? or minlen.empty?
Facter.add('eyp_cracklib_password_minlen') do
Facter.add('eyp_pam_cracklib_password_minlen') do
setcode do
minlen
end
end
Facter.add('eyp_cracklib_password_minlen_description') do
Facter.add('eyp_pam_cracklib_password_minlen_description') do
setcode do
'Minimum acceptable size for the new password'
end
end
end

unless ocredit.nil? or ocredit.empty?
Facter.add('eyp_cracklib_password_ocredit') do
Facter.add('eyp_pam_cracklib_password_ocredit') do
setcode do
ocredit
end
end
Facter.add('eyp_cracklib_password_ocredit_description') do
Facter.add('eyp_pam_cracklib_password_ocredit_description') do
setcode do
'The maximum credit for having other characters in the new password'
end
end
end

unless lcredit.nil? or lcredit.empty?
Facter.add('eyp_cracklib_password_lcredit') do
Facter.add('eyp_pam_cracklib_password_lcredit') do
setcode do
lcredit
end
end
Facter.add('eyp_cracklib_password_lcredit_description') do
Facter.add('eyp_pam_cracklib_password_lcredit_description') do
setcode do
'The maximum credit for having lowercase characters in the new password'
end
end
end

unless ucredit.nil? or ucredit.empty?
Facter.add('eyp_cracklib_password_ucredit') do
Facter.add('eyp_pam_cracklib_password_ucredit') do
setcode do
ucredit
end
end
Facter.add('eyp_cracklib_password_ucredit_description') do
Facter.add('eyp_pam_cracklib_password_ucredit_description') do
setcode do
'The maximum credit for having uppercase characters in the new password'
end
end
end

unless dcredit.nil? or dcredit.empty?
Facter.add('eyp_cracklib_password_dcredit') do
Facter.add('eyp_pam_cracklib_password_dcredit') do
setcode do
dcredit
end
end
Facter.add('eyp_cracklib_password_dcredit_description') do
Facter.add('eyp_pam_cracklib_password_dcredit_description') do
setcode do
'The maximum credit for having digits in the new password'
end
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eyp-pam",
"version": "0.1.19",
"version": "0.1.20",
"author": "eyp",
"summary": "PAM modules, /etc/security/limits.conf and /etc/securetty management",
"license": "Apache-2.0",
Expand Down

0 comments on commit 3fbfef4

Please sign in to comment.