From 6b54c9a80f45d5ef85d4cf6c1bb5291670324932 Mon Sep 17 00:00:00 2001 From: Greg Norris Date: Wed, 16 Nov 2005 07:56:25 -0600 Subject: Imported Debian patch 0.99-3 --- debian/README.Debian | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) (limited to 'debian/README.Debian') diff --git a/debian/README.Debian b/debian/README.Debian index be39559..34d3253 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -1,16 +1,25 @@ libpam-pwdfile for Debian ------------------------- -This module allows one to authenticate users using a passwd-like file. -Creating this file currently means either copying the relevant entries from -/etc/{passwd,shadow}, or using the chpwdfile utility (not yet packaged) from -http://eclipse.che.uct.ac.za/chpwdfile/. +This module allows one to authenticate users via an arbitrary password file. +The file follows the same format as /etc/passwd and /etc/shadow, although only +the first two fields are required. In other words, each entry should start at +the beginning of a line and use the following format: -Below is an example of a working /etc/pam.d/* configuration... specifically, -this is copy of my /etc/pam.d/qpopper. Please note that the "account" entry -is required. + [username]:[password-hash] - auth required pam_pwdfile.so pwdfile /etc/qpopper/qpopper.pwd - account required pam_unix_acct.so - -- Greg Norris , Tue, 08 Jul 2003 18:57:16 -0500 +The following command provides a quick way to generate an appropriate hash, +which may then be copied into your password file. + + perl -e '$salt=q($1$).int(rand(1e8)); print "password: "; chomp($passwd=); print crypt($passwd,$salt),"\n"' + + +Here's an example of a working configuration... specifically, this is copied +from my /etc/pam.d/dovecot file. + + auth required pam_pwdfile.so pwdfile=/etc/dovecot/dovecot.passwd + @include common-account + @include common-session + + -- Greg Norris Wed, 16 Nov 2005 07:50:37 -0600 -- cgit v1.2.3