forked from ports/contrib
linux-pam: Updated version 1.1.0 -> 1.1.4
Removed *.la files Removed unneeded lastlog patch Improved default pam.conf file
This commit is contained in:
parent
9e4bd2d148
commit
ebba475b71
@ -12,100 +12,57 @@ drwxr-xr-x root/root etc/security/namespace.d/
|
||||
-rw-r--r-- root/root etc/security/pam_env.conf
|
||||
-rw-r--r-- root/root etc/security/time.conf
|
||||
drwxr-xr-x root/root lib/
|
||||
-rwxr-xr-x root/root lib/libpam.la
|
||||
lrwxrwxrwx root/root lib/libpam.so -> libpam.so.0.82.1
|
||||
lrwxrwxrwx root/root lib/libpam.so.0 -> libpam.so.0.82.1
|
||||
-rwxr-xr-x root/root lib/libpam.so.0.82.1
|
||||
-rwxr-xr-x root/root lib/libpam_misc.la
|
||||
lrwxrwxrwx root/root lib/libpam.so -> libpam.so.0.83.1
|
||||
lrwxrwxrwx root/root lib/libpam.so.0 -> libpam.so.0.83.1
|
||||
-rwxr-xr-x root/root lib/libpam.so.0.83.1
|
||||
lrwxrwxrwx root/root lib/libpam_misc.so -> libpam_misc.so.0.82.0
|
||||
lrwxrwxrwx root/root lib/libpam_misc.so.0 -> libpam_misc.so.0.82.0
|
||||
-rwxr-xr-x root/root lib/libpam_misc.so.0.82.0
|
||||
-rwxr-xr-x root/root lib/libpamc.la
|
||||
lrwxrwxrwx root/root lib/libpamc.so -> libpamc.so.0.82.1
|
||||
lrwxrwxrwx root/root lib/libpamc.so.0 -> libpamc.so.0.82.1
|
||||
-rwxr-xr-x root/root lib/libpamc.so.0.82.1
|
||||
drwxr-xr-x root/root lib/security/
|
||||
-rwxr-xr-x root/root lib/security/pam_access.la
|
||||
-rwxr-xr-x root/root lib/security/pam_access.so
|
||||
-rwxr-xr-x root/root lib/security/pam_debug.la
|
||||
-rwxr-xr-x root/root lib/security/pam_debug.so
|
||||
-rwxr-xr-x root/root lib/security/pam_deny.la
|
||||
-rwxr-xr-x root/root lib/security/pam_deny.so
|
||||
-rwxr-xr-x root/root lib/security/pam_echo.la
|
||||
-rwxr-xr-x root/root lib/security/pam_echo.so
|
||||
-rwxr-xr-x root/root lib/security/pam_env.la
|
||||
-rwxr-xr-x root/root lib/security/pam_env.so
|
||||
-rwxr-xr-x root/root lib/security/pam_exec.la
|
||||
-rwxr-xr-x root/root lib/security/pam_exec.so
|
||||
-rwxr-xr-x root/root lib/security/pam_faildelay.la
|
||||
-rwxr-xr-x root/root lib/security/pam_faildelay.so
|
||||
-rwxr-xr-x root/root lib/security/pam_filter.la
|
||||
-rwxr-xr-x root/root lib/security/pam_filter.so
|
||||
drwxr-xr-x root/root lib/security/pam_filter/
|
||||
-rwxr-xr-x root/root lib/security/pam_filter/upperLOWER
|
||||
-rwxr-xr-x root/root lib/security/pam_ftp.la
|
||||
-rwxr-xr-x root/root lib/security/pam_ftp.so
|
||||
-rwxr-xr-x root/root lib/security/pam_group.la
|
||||
-rwxr-xr-x root/root lib/security/pam_group.so
|
||||
-rwxr-xr-x root/root lib/security/pam_issue.la
|
||||
-rwxr-xr-x root/root lib/security/pam_issue.so
|
||||
-rwxr-xr-x root/root lib/security/pam_keyinit.la
|
||||
-rwxr-xr-x root/root lib/security/pam_keyinit.so
|
||||
-rwxr-xr-x root/root lib/security/pam_lastlog.la
|
||||
-rwxr-xr-x root/root lib/security/pam_lastlog.so
|
||||
-rwxr-xr-x root/root lib/security/pam_limits.la
|
||||
-rwxr-xr-x root/root lib/security/pam_limits.so
|
||||
-rwxr-xr-x root/root lib/security/pam_listfile.la
|
||||
-rwxr-xr-x root/root lib/security/pam_listfile.so
|
||||
-rwxr-xr-x root/root lib/security/pam_localuser.la
|
||||
-rwxr-xr-x root/root lib/security/pam_localuser.so
|
||||
-rwxr-xr-x root/root lib/security/pam_loginuid.la
|
||||
-rwxr-xr-x root/root lib/security/pam_loginuid.so
|
||||
-rwxr-xr-x root/root lib/security/pam_mail.la
|
||||
-rwxr-xr-x root/root lib/security/pam_mail.so
|
||||
-rwxr-xr-x root/root lib/security/pam_mkhomedir.la
|
||||
-rwxr-xr-x root/root lib/security/pam_mkhomedir.so
|
||||
-rwxr-xr-x root/root lib/security/pam_motd.la
|
||||
-rwxr-xr-x root/root lib/security/pam_motd.so
|
||||
-rwxr-xr-x root/root lib/security/pam_namespace.la
|
||||
-rwxr-xr-x root/root lib/security/pam_namespace.so
|
||||
-rwxr-xr-x root/root lib/security/pam_nologin.la
|
||||
-rwxr-xr-x root/root lib/security/pam_nologin.so
|
||||
-rwxr-xr-x root/root lib/security/pam_permit.la
|
||||
-rwxr-xr-x root/root lib/security/pam_permit.so
|
||||
-rwxr-xr-x root/root lib/security/pam_pwhistory.la
|
||||
-rwxr-xr-x root/root lib/security/pam_pwhistory.so
|
||||
-rwxr-xr-x root/root lib/security/pam_rhosts.la
|
||||
-rwxr-xr-x root/root lib/security/pam_rhosts.so
|
||||
-rwxr-xr-x root/root lib/security/pam_rootok.la
|
||||
-rwxr-xr-x root/root lib/security/pam_rootok.so
|
||||
-rwxr-xr-x root/root lib/security/pam_securetty.la
|
||||
-rwxr-xr-x root/root lib/security/pam_securetty.so
|
||||
-rwxr-xr-x root/root lib/security/pam_shells.la
|
||||
-rwxr-xr-x root/root lib/security/pam_shells.so
|
||||
-rwxr-xr-x root/root lib/security/pam_stress.la
|
||||
-rwxr-xr-x root/root lib/security/pam_stress.so
|
||||
-rwxr-xr-x root/root lib/security/pam_succeed_if.la
|
||||
-rwxr-xr-x root/root lib/security/pam_succeed_if.so
|
||||
-rwxr-xr-x root/root lib/security/pam_tally.la
|
||||
-rwxr-xr-x root/root lib/security/pam_tally.so
|
||||
-rwxr-xr-x root/root lib/security/pam_tally2.la
|
||||
-rwxr-xr-x root/root lib/security/pam_tally2.so
|
||||
-rwxr-xr-x root/root lib/security/pam_time.la
|
||||
-rwxr-xr-x root/root lib/security/pam_time.so
|
||||
-rwxr-xr-x root/root lib/security/pam_timestamp.la
|
||||
-rwxr-xr-x root/root lib/security/pam_timestamp.so
|
||||
-rwxr-xr-x root/root lib/security/pam_umask.la
|
||||
-rwxr-xr-x root/root lib/security/pam_umask.so
|
||||
-rwxr-xr-x root/root lib/security/pam_unix.la
|
||||
-rwxr-xr-x root/root lib/security/pam_unix.so
|
||||
-rwxr-xr-x root/root lib/security/pam_userdb.la
|
||||
-rwxr-xr-x root/root lib/security/pam_userdb.so
|
||||
-rwxr-xr-x root/root lib/security/pam_warn.la
|
||||
-rwxr-xr-x root/root lib/security/pam_warn.so
|
||||
-rwxr-xr-x root/root lib/security/pam_wheel.la
|
||||
-rwxr-xr-x root/root lib/security/pam_wheel.so
|
||||
-rwxr-xr-x root/root lib/security/pam_xauth.la
|
||||
-rwxr-xr-x root/root lib/security/pam_xauth.so
|
||||
drwxr-xr-x root/root sbin/
|
||||
-rwxr-xr-x root/root sbin/mkhomedir_helper
|
||||
@ -140,6 +97,8 @@ drwxr-xr-x root/root usr/man/man3/
|
||||
-rw-r--r-- root/root usr/man/man3/pam_error.3.gz
|
||||
-rw-r--r-- root/root usr/man/man3/pam_fail_delay.3.gz
|
||||
-rw-r--r-- root/root usr/man/man3/pam_get_authtok.3.gz
|
||||
-rw-r--r-- root/root usr/man/man3/pam_get_authtok_noverify.3.gz
|
||||
-rw-r--r-- root/root usr/man/man3/pam_get_authtok_verify.3.gz
|
||||
-rw-r--r-- root/root usr/man/man3/pam_get_data.3.gz
|
||||
-rw-r--r-- root/root usr/man/man3/pam_get_item.3.gz
|
||||
-rw-r--r-- root/root usr/man/man3/pam_get_user.3.gz
|
||||
@ -183,7 +142,6 @@ drwxr-xr-x root/root usr/man/man8/
|
||||
-rw-r--r-- root/root usr/man/man8/mkhomedir_helper.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/pam.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/pam_access.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/pam_cracklib.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/pam_debug.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/pam_deny.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/pam_echo.8.gz
|
||||
@ -217,7 +175,6 @@ drwxr-xr-x root/root usr/man/man8/
|
||||
-rw-r--r-- root/root usr/man/man8/pam_time.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/pam_timestamp.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/pam_timestamp_check.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/pam_tty_audit.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/pam_umask.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/pam_unix.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/pam_userdb.8.gz
|
||||
|
@ -1,3 +1,2 @@
|
||||
9cda791c827dfcd9f2888caf0a64cc4a Linux-PAM-1.1.0.tar.bz2
|
||||
db72385e7a8c81acc85afc0be4399b4a pam.conf
|
||||
4f8870b4ef847b242ee24d8259f087da pam_lastlog.patch
|
||||
e9af5fb27bb22edb55d077e2888b3ebc Linux-PAM-1.1.4.tar.bz2
|
||||
acca6a1a1573300eb5cc3780fbefc6a7 pam.conf
|
||||
|
@ -3,17 +3,16 @@
|
||||
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
|
||||
|
||||
name=linux-pam
|
||||
version=1.1.0
|
||||
version=1.1.4
|
||||
release=1
|
||||
source=(http://www.us.kernel.org/pub/linux/libs/pam/library/Linux-PAM-$version.tar.bz2 pam.conf pam_lastlog.patch)
|
||||
source=(http://www.us.kernel.org/pub/linux/libs/pam/library/Linux-PAM-$version.tar.bz2 pam.conf)
|
||||
|
||||
build() {
|
||||
cd Linux-PAM-$version
|
||||
patch -p1 -i $SRC/pam_lastlog.patch
|
||||
|
||||
./configure --sysconfdir=/etc --prefix=/usr --mandir=/usr/man --disable-nls
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
rm -rf $PKG/usr/share
|
||||
rm -rf $PKG/usr/share $PKG/lib/*.la $PKG/lib/security/*.la
|
||||
install -D -m 644 $SRC/pam.conf $PKG/etc/pam.conf
|
||||
}
|
||||
|
@ -1,75 +1,50 @@
|
||||
#
|
||||
# /etc/pam.conf: authentication stack configuration file
|
||||
#
|
||||
|
||||
# imap auth sufficient pam_ldap.so
|
||||
imap auth required pam_unix.so md5 shadow try_first_pass
|
||||
# imap account sufficient pam_ldap.so
|
||||
imap account required pam_unix.so
|
||||
# imap session sufficient pam_ldap.so
|
||||
imap session required pam_unix.so
|
||||
|
||||
# pop3 auth sufficient pam_ldap.so
|
||||
pop3 auth required pam_unix.so md5 shadow try_first_pass
|
||||
# pop3 account sufficient pam_ldap.so
|
||||
pop3 account required pam_unix.so
|
||||
# pop3 session sufficient pam_ldap.so
|
||||
pop3 session required pam_unix.so
|
||||
|
||||
# sshd auth sufficient pam_ldap.so
|
||||
sshd auth required pam_unix.so md5 shadow try_first_pass
|
||||
# sshd account sufficient pam_ldap.so
|
||||
sshd account required pam_unix.so
|
||||
# sshd session sufficient pam_ldap.so
|
||||
sshd session required pam_unix.so
|
||||
|
||||
su auth sufficient pam_rootok.so
|
||||
# su auth sufficient pam_ldap.so
|
||||
su auth required pam_unix.so md5 shadow try_first_pass
|
||||
# su account sufficient pam_ldap.so
|
||||
su account required pam_unix.so
|
||||
# su session sufficient pam_ldap.so
|
||||
su session required pam_unix.so
|
||||
|
||||
login auth requisite pam_securetty.so
|
||||
# login auth sufficient pam_ldap.so
|
||||
login auth required pam_unix.so md5 shadow try_first_pass
|
||||
login account requisite pam_time.so
|
||||
# login account sufficient pam_ldap.so
|
||||
login account required pam_unix.so
|
||||
# login session sufficient pam_ldap.so
|
||||
login session required pam_unix.so
|
||||
|
||||
kde auth requisite pam_securetty.so
|
||||
# kde auth sufficient pam_ldap.so
|
||||
kde auth required pam_unix.so md5 shadow try_first_pass
|
||||
kde account requisite pam_time.so
|
||||
# kde account sufficient pam_ldap.so
|
||||
kde account required pam_unix.so
|
||||
# kde session sufficient pam_ldap.so
|
||||
kde session required pam_unix.so
|
||||
|
||||
# samba auth sufficient pam_ldap.so
|
||||
samba auth required pam_unix.so md5 shadow try_first_pass
|
||||
# samba account sufficient pam_ldap.so
|
||||
samba account required pam_unix.so
|
||||
# samba session sufficient pam_ldap.so
|
||||
samba session required pam_unix.so
|
||||
|
||||
ftp auth sufficient pam_ftp.so
|
||||
# ftp auth sufficient pam_ldap.so
|
||||
ftp auth required pam_unix.so md5 shadow try_first_pass
|
||||
# ftp account sufficient pam_ldap.so
|
||||
ftp account required pam_unix.so
|
||||
# ftp session sufficient pam_ldap.so
|
||||
ftp session required pam_unix.so
|
||||
|
||||
# passwd password sufficient pam_ldap.so
|
||||
passwd password required pam_unix.so md5 shadow try_first_pass
|
||||
|
||||
other auth required pam_warn.so
|
||||
other auth requisite pam_deny.so
|
||||
other account requisite pam_deny.so
|
||||
other password required pam_warn.so
|
||||
other password requisite pam_deny.so
|
||||
other session requisite pam_deny.so
|
||||
ftp auth sufficient pam_ftp.so
|
||||
ftp auth required pam_unix.so md5 shadow try_first_pass
|
||||
ftp account required pam_unix.so
|
||||
ftp session required pam_unix.so
|
||||
#
|
||||
imap auth required pam_unix.so md5 shadow try_first_pass
|
||||
imap account required pam_unix.so
|
||||
imap session required pam_unix.so
|
||||
#
|
||||
pop3 auth required pam_unix.so md5 shadow try_first_pass
|
||||
pop3 account required pam_unix.so
|
||||
pop3 session required pam_unix.so
|
||||
#
|
||||
kde auth requisite pam_securetty.so
|
||||
kde auth required pam_unix.so md5 shadow try_first_pass
|
||||
kde account requisite pam_time.so
|
||||
kde account required pam_unix.so
|
||||
kde session required pam_unix.so
|
||||
#
|
||||
login auth requisite pam_securetty.so
|
||||
login auth required pam_unix.so md5 shadow try_first_pass
|
||||
login account requisite pam_time.so
|
||||
login account required pam_unix.so
|
||||
login session required pam_unix.so
|
||||
#
|
||||
samba auth required pam_unix.so md5 shadow try_first_pass
|
||||
samba account required pam_unix.so
|
||||
samba session required pam_unix.so
|
||||
#
|
||||
sshd auth required pam_unix.so md5 shadow try_first_pass
|
||||
sshd account required pam_unix.so
|
||||
sshd session required pam_unix.so
|
||||
#
|
||||
su auth sufficient pam_rootok.so
|
||||
su auth required pam_unix.so md5 shadow try_first_pass
|
||||
su account required pam_unix.so
|
||||
su session required pam_unix.so
|
||||
#
|
||||
passwd password required pam_unix.so md5 shadow try_first_pass
|
||||
#
|
||||
other auth required pam_warn.so
|
||||
other auth requisite pam_deny.so
|
||||
other account requisite pam_deny.so
|
||||
other password required pam_warn.so
|
||||
other password requisite pam_deny.so
|
||||
other session required pam_warn.so
|
||||
other session requisite pam_deny.so
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- Linux-PAM-1.1.0/modules/pam_lastlog/pam_lastlog.c.orig 2009-10-27 20:33:26.285790481 +0900
|
||||
+++ Linux-PAM-1.1.0/modules/pam_lastlog/pam_lastlog.c 2009-10-27 20:39:59.996604837 +0900
|
||||
@@ -471,7 +471,7 @@
|
||||
failed),
|
||||
failed);
|
||||
#else
|
||||
- if (daysleft == 1)
|
||||
+ if (failed == 1)
|
||||
retval = asprintf(&line,
|
||||
_("There was %d failed login attempt since the last successful login."),
|
||||
failed);
|
Loading…
x
Reference in New Issue
Block a user