summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@redhat.com>2011-10-03 16:26:19 +0200
committerTomas Mraz <tmraz@redhat.com>2011-10-03 16:26:19 +0200
commit56aa55ef716d7316a6fcfc805ead273503d73bee (patch)
tree437c1914141f642fce66359e5843a223887c94cb /src
parent7734d2ab72891bd44b2d2fc66d4d1cc861c9b0f5 (diff)
downloadlibpwquality-56aa55ef716d7316a6fcfc805ead273503d73bee.tar.gz
Create first tarball. Add spec file.libpwquality-0.9
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am12
-rw-r--r--src/pwquality.conf45
2 files changed, 55 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index b2b8c56..4b7438d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -6,7 +6,11 @@
CLEANFILES = *~
-EXTRA_DIST = libpwquality.map
+securelibdir = @SECUREDIR@
+
+secureconfdir = @SCONFIGDIR@
+
+EXTRA_DIST = libpwquality.map pwquality.conf
include_HEADERS = pwquality.h
@@ -39,6 +43,10 @@ pwmake_SOURCES = pwmake.c
pwmake_LDADD = libpwquality.la
-lib_LTLIBRARIES = libpwquality.la pam_pwquality.la
+lib_LTLIBRARIES = libpwquality.la
+
+securelib_LTLIBRARIES = pam_pwquality.la
+
+secureconf_DATA = pwquality.conf
bin_PROGRAMS = pwscore pwmake
diff --git a/src/pwquality.conf b/src/pwquality.conf
new file mode 100644
index 0000000..257101f
--- /dev/null
+++ b/src/pwquality.conf
@@ -0,0 +1,45 @@
+# Configuration for systemwide password quality limits
+# Defaults:
+#
+# Number of characters in the new password that must not be present in the
+# old password.
+# difok = 5
+#
+# How many characters should the password have before difok will be
+# ignored.
+# difignore = 23
+#
+# Minimum acceptable size for the new password (plus one if
+# credits are not disabled which is the default). (See pam_cracklib manual.)
+# Cannot be set to lower value than 6.
+# minlen = 9
+#
+# The maximum credit for having digits in the new password. If less than 0
+# it is the minimum number of digits in the new password.
+# dcredit = 1
+#
+# The maximum credit for having uppercase characters in the new password.
+# If less than 0 it is the minimum number of uppercase characters in the new
+# password.
+# ucredit = 1
+#
+# The maximum credit for having lowercase characters in the new password.
+# If less than 0 it is the minimum number of lowercase characters in the new
+# password.
+# lcredit = 1
+#
+# The maximum credit for having other characters in the new password.
+# If less than 0 it is the minimum number of other characters in the new
+# password.
+# ocredit = 1
+#
+# The minimum number of required classes of characters for the new
+# password (digits, uppercase, lowercase, others).
+# minclass = 0
+#
+# The maximum number of allowed consecutive characters in the new password.
+# The check is disabled if the value is 0.
+# maxrepeat = 0
+#
+# Path to the cracklib dictionaries. Default is to use the cracklib default.
+# dictpath =