Thorsten Kukuk 2016-06-23 09:30:50 +00:00 committed by Git OBS Bridge
parent 7e32a89449
commit 3605c45356
6 changed files with 10 additions and 74 deletions

View File

@ -1,13 +0,0 @@
#%PAM-1.0
#
# This file is autogenerated by pam-config. All changes
# will be overwritten.
#
# Account-related modules common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the account modules that define
# the central access policy for use on the system. The default is to
# only deny service to users whose accounts are expired.
#
account required pam_unix.so try_first_pass

View File

@ -1,15 +0,0 @@
#%PAM-1.0
#
# This file is autogenerated by pam-config. All changes
# will be overwritten.
#
# Authentication-related modules common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the authentication modules that define
# the central authentication scheme for use on the system
# (e.g., /etc/shadow, LDAP, Kerberos, etc.). The default is to use the
# traditional Unix authentication mechanisms.
#
auth required pam_env.so
auth required pam_unix.so try_first_pass

View File

@ -1,13 +0,0 @@
#%PAM-1.0
#
# This file is autogenerated by pam-config. All changes
# will be overwritten.
#
# Password-related modules common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of modules that define the services to be
# used to change user passwords.
#
password requisite pam_cracklib.so
password required pam_unix.so use_authtok nullok shadow try_first_pass

View File

@ -1,16 +0,0 @@
#%PAM-1.0
#
# This file is autogenerated by pam-config. All changes
# will be overwritten.
#
# Session-related modules common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of modules that define tasks to be performed
# at the start and end of sessions of *any* kind (both interactive and
# non-interactive
#
session required pam_limits.so
session required pam_unix.so try_first_pass
session optional pam_umask.so
session optional pam_env.so

View File

@ -1,8 +1,6 @@
-------------------------------------------------------------------
Tue May 31 15:41:15 CEST 2016 - kukuk@suse.de
Thu Jun 23 11:20:02 CEST 2016 - kukuk@suse.de
- No %ghost entries anymore, common-*-pc files are now real config
files for better tracking of modifications.
- Update to version 0.91
- Adjust for Linux-PAM 1.3.0
- Automatically replace obsolete PAM modules no longer installed

View File

@ -23,12 +23,8 @@ Group: System/Management
Version: 0.91
Release: 0
PreReq: pam >= 1.3.0
Url: https://github.com/SUSE/pam-config
Url: https://github.com/SUSE/pam-config
Source: %{name}-%{version}.tar.bz2
Source1: common-account-pc
Source2: common-auth-pc
Source3: common-password-pc
Source4: common-session-pc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -50,14 +46,13 @@ make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d
install -m 644 %SOURCE1 $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/
install -m 644 %SOURCE2 $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/
install -m 644 %SOURCE3 $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/
install -m 644 %SOURCE4 $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/
for i in account auth password session ; do
touch $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/common-$i-pc
done
%{find_lang} pam-config
%post
if [ "$1" = "1" ]; then
if [ ! -f /etc/pam.d/common-auth-pc ] ; then
pam-config --debug --create --force
else
pam-config --debug --update ||:
@ -88,9 +83,9 @@ fi
%defattr(-,root,root)
%{_sbindir}/pam-config
%doc %{_mandir}/man8/pam-config.8*
%config %{_sysconfdir}/pam.d/common-account-pc
%config %{_sysconfdir}/pam.d/common-auth-pc
%config %{_sysconfdir}/pam.d/common-password-pc
%config %{_sysconfdir}/pam.d/common-session-pc
%ghost %config %{_sysconfdir}/pam.d/common-account-pc
%ghost %config %{_sysconfdir}/pam.d/common-auth-pc
%ghost %config %{_sysconfdir}/pam.d/common-password-pc
%ghost %config %{_sysconfdir}/pam.d/common-session-pc
%changelog