diff options
author | Iker Pedrosa <ipedrosa@redhat.com> | 2022-07-08 11:33:03 +0200 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2022-07-15 08:00:00 +0000 |
commit | ba2f6dd8b81ea2a58262c1709bec906b6852591d (patch) | |
tree | 92db271cb8824cc786c4ae41600fe0257bc68fca /modules/pam_pwhistory/pwhistory.conf | |
parent | 37c8403dbefe9b0f1cb22b1a96c30d926fd568c8 (diff) | |
download | pam-ba2f6dd8b81ea2a58262c1709bec906b6852591d.tar.gz pam-ba2f6dd8b81ea2a58262c1709bec906b6852591d.tar.bz2 pam-ba2f6dd8b81ea2a58262c1709bec906b6852591d.zip |
pam_pwhistory: load config from file
* modules/pam_pwhistory/pam_pwhistory.c: Load config from file and
provide new conf option to select the file.
* modules/pam_pwhistory/pwhistory_config.c: Parse config from file and
load to options structure.
* modules/pam_pwhistory/pwhistory_config.h: Move options_t structure and
define parse_config_file().
* modules/pam_pwhistory/Makefile.am (noinst_HEADERS): Add pwhistory_config.h.
(pam_pwhistory_la_SOURCES): Add pwhistory_config.c.
(dist_secureconf_DATA): Add pwhistory.conf.
* modules/pam_pwhistory/pwhistory.conf: New configuration file.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2068461
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
Diffstat (limited to 'modules/pam_pwhistory/pwhistory.conf')
-rw-r--r-- | modules/pam_pwhistory/pwhistory.conf | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/pam_pwhistory/pwhistory.conf b/modules/pam_pwhistory/pwhistory.conf new file mode 100644 index 00000000..070b7197 --- /dev/null +++ b/modules/pam_pwhistory/pwhistory.conf @@ -0,0 +1,21 @@ +# Configuration for remembering the last passwords used by a user. +# +# Enable the debugging logs. +# Enabled if option is present. +# debug +# +# root account's passwords are also remembered. +# Enabled if option is present. +# enforce_for_root +# +# Number of passwords to remember. +# The default is 10. +# remember = 10 +# +# Number of times to prompt for the password. +# The default is 1. +# retry = 1 +# +# The directory where the last passwords are kept. +# The default is /etc/security/opasswd. +# file = /etc/security/opasswd |