forked from pool/pam-config
Accepting request 399364 from Linux-PAM
- 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 - Extend error messages OBS-URL: https://build.opensuse.org/request/show/399364 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pam-config?expand=0&rev=69
This commit is contained in:
parent
42454994a8
commit
290ae5f16b
13
common-account-pc
Normal file
13
common-account-pc
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#%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
|
15
common-auth-pc
Normal file
15
common-auth-pc
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#%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
|
13
common-password-pc
Normal file
13
common-password-pc
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#%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
|
16
common-session-pc
Normal file
16
common-session-pc
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#%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
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:e7f5226b37831b6d97ba8d95379561d9569d788575016b41fb5e4104f54a2b34
|
|
||||||
size 334488
|
|
3
pam-config-0.91.tar.bz2
Normal file
3
pam-config-0.91.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ed70b81cdf3ae34134eb312b44306942bbf0cdcfc4467c8ce2df4ea8589abd78
|
||||||
|
size 321326
|
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 31 15:41:15 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
|
||||||
|
- Extend error messages
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 1 11:37:05 CEST 2016 - kukuk@suse.de
|
Fri Apr 1 11:37:05 CEST 2016 - kukuk@suse.de
|
||||||
|
|
||||||
|
@ -20,10 +20,15 @@ Name: pam-config
|
|||||||
Summary: Modify common PAM configuration files
|
Summary: Modify common PAM configuration files
|
||||||
License: GPL-2.0
|
License: GPL-2.0
|
||||||
Group: System/Management
|
Group: System/Management
|
||||||
Version: 0.89
|
Version: 0.91
|
||||||
Release: 0
|
Release: 0
|
||||||
PreReq: pam >= 0.99
|
PreReq: pam >= 1.3.0
|
||||||
|
Url: https://github.com/SUSE/pam-config
|
||||||
Source: %{name}-%{version}.tar.bz2
|
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
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -45,13 +50,14 @@ make %{?_smp_mflags}
|
|||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d
|
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d
|
||||||
for i in account auth password session ; do
|
install -m 644 %SOURCE1 $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/
|
||||||
touch $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/common-$i-pc
|
install -m 644 %SOURCE2 $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/
|
||||||
done
|
install -m 644 %SOURCE3 $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/
|
||||||
|
install -m 644 %SOURCE4 $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/
|
||||||
%{find_lang} pam-config
|
%{find_lang} pam-config
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ ! -f /etc/pam.d/common-auth-pc ] ; then
|
if [ "$1" = "1" ]; then
|
||||||
pam-config --debug --create --force
|
pam-config --debug --create --force
|
||||||
else
|
else
|
||||||
pam-config --debug --update ||:
|
pam-config --debug --update ||:
|
||||||
@ -82,9 +88,9 @@ fi
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_sbindir}/pam-config
|
%{_sbindir}/pam-config
|
||||||
%doc %{_mandir}/man8/pam-config.8*
|
%doc %{_mandir}/man8/pam-config.8*
|
||||||
%ghost %config %{_sysconfdir}/pam.d/common-account-pc
|
%config %{_sysconfdir}/pam.d/common-account-pc
|
||||||
%ghost %config %{_sysconfdir}/pam.d/common-auth-pc
|
%config %{_sysconfdir}/pam.d/common-auth-pc
|
||||||
%ghost %config %{_sysconfdir}/pam.d/common-password-pc
|
%config %{_sysconfdir}/pam.d/common-password-pc
|
||||||
%ghost %config %{_sysconfdir}/pam.d/common-session-pc
|
%config %{_sysconfdir}/pam.d/common-session-pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user