pam: Add pam.d and rebuilt to get cracklib.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-11-22 21:22:28 +07:00
parent 7a010cf1bc
commit 9f15f901ce
No known key found for this signature in database
GPG key ID: 887B8374D7333381
7 changed files with 48 additions and 2 deletions

View file

@ -27,7 +27,7 @@
SRCNAM=Linux-PAM
PRGNAM=pam
VERSION=${VERSION:-1.3.0}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_csb}
if [ -z "$ARCH" ]; then
@ -108,6 +108,9 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING* Copyright NEWS README* $PKG/usr/doc/$PRGNAM-$VERSION
rm -f $PKG/usr/doc/$PRGNAM-$VERSION/index.html
mkdir -p $PKG/etc
cp -rf $CWD/pam.d $PKG/etc/
# fix some missing symlinks from old pam for compatibility
cd $PKG/usr/lib${LIBDIRSUFFIX}/security
ln -s pam_unix.so pam_unix_acct.so

8
pam/pam.d/other Normal file
View file

@ -0,0 +1,8 @@
# Begin /etc/pam.d/other
auth required pam_unix.so nullok
account required pam_unix.so
session required pam_unix.so
password required pam_unix.so nullok
# End /etc/pam.d/other

5
pam/pam.d/system-account Normal file
View file

@ -0,0 +1,5 @@
# Begin /etc/pam.d/system-account
account required pam_unix.so
# End /etc/pam.d/system-account

5
pam/pam.d/system-auth Normal file
View file

@ -0,0 +1,5 @@
# Begin /etc/pam.d/system-auth
auth required pam_unix.so
# End /etc/pam.d/system-auth

7
pam/pam.d/system-login Normal file
View file

@ -0,0 +1,7 @@
#%PAM-1.0
auth required pam_unix.so
auth requisite pam_nologin.so
account required pam_unix.so
password required pam_unix.so
session required pam_unix.so

13
pam/pam.d/system-password Normal file
View file

@ -0,0 +1,13 @@
# Begin /etc/pam.d/system-password
# check new passwords for strength (man pam_cracklib)
#password required pam_cracklib.so type=Linux retry=3 difok=5 \
# difignore=23 minlen=9 dcredit=1 \
# ucredit=1 lcredit=1 ocredit=1 \
# dictpath=/usr/share/cracklib/cracklib-large
# use sha512 hash for encryption, use shadow, and use the
# authentication token (chosen password) set by pam_cracklib
# above (or any previous modules)
password required pam_unix.so sha512 shadow use_authtok
# End /etc/pam.d/system-password

5
pam/pam.d/system-session Normal file
View file

@ -0,0 +1,5 @@
# Begin /etc/pam.d/system-session
session required pam_unix.so
# End /etc/pam.d/system-session