On uninstall remove winbind from the pam configuration, invalidate the nscd

passwd and group cache and only recommend the install of nscd; (bnc#792340).

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/samba?expand=0&rev=275
This commit is contained in:
Lars Müller 2012-12-04 21:12:47 +00:00 committed by Git OBS Bridge
parent 13328d4aa3
commit 39a84b9c71
6 changed files with 27 additions and 9 deletions

View File

@ -1 +1 @@
SOURCE_TIMESTAMP="2874"
SOURCE_TIMESTAMP="2876"

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a8072ae9b5cb548e03a94c16c42d4d92f8b320600e07ea65a8ce8e09ee8dc2b1
size 44081
oid sha256:7614cfa477f4cf3386d6d204548babdb1961925ef265c2cb5d57c9540557a062
size 44085

View File

@ -126,7 +126,7 @@ BuildRequires: libtevent-devel
%else
%define build_make_smp_mflags %{?jobs:-j%jobs}
%endif
%define SOURCE_TIMESTAMP 2874
%define SOURCE_TIMESTAMP 2876
%define BRANCH 3.6.9
Version: 3.6.9
Release: 0

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Dec 4 14:29:48 UTC 2012 - lmuelle@suse.com
- On uninstall remove winbind from the pam configuration, invalidate the nscd
passwd and group cache and only recommend the install of nscd; (bnc#792340).
-------------------------------------------------------------------
Mon Dec 3 16:43:51 UTC 2012 - lmuelle@suse.com

View File

@ -126,7 +126,7 @@ BuildRequires: libtevent-devel
%else
%define build_make_smp_mflags %{?jobs:-j%jobs}
%endif
%define SOURCE_TIMESTAMP 2874
%define SOURCE_TIMESTAMP 2876
%define BRANCH 3.6.9
Version: 3.6.9
Release: 0
@ -372,12 +372,15 @@ Provides: samba-client:/usr/sbin/winbindd
Obsoletes: samba-winbind-64bit
%endif
Requires: samba-client >= %{version}
%if 0%{?suse_version}
Requires: pam-config
%endif
%if 0%{?suse_version} > 1030
Recommends: cron
Recommends: logrotate
Recommends: samba-krb-printing
%endif
PreReq: /etc/init.d/nscd
Recommends: /usr/sbin/nscd
%if 0%{?suse_version} > 0
PreReq: %{?insserv_prereq}
%endif
@ -1338,7 +1341,16 @@ fi
%postun winbind
/sbin/ldconfig
%{?restart_on_update:%{restart_on_update nscd winbind}}
%if 0%{?suse_version}
if [ $1 -eq 0 ]; then
%{_sbindir}/pam-config --delete --winbind
if [ -x %{_sbindir}/nscd ]; then
%{_sbindir}/nscd -i passwd
%{_sbindir}/nscd -i group
fi
fi
%endif
%{?restart_on_update:%{restart_on_update winbind}}
%{?insserv_cleanup:%{insserv_cleanup}}
%post -n %{libsmbclient_name} -p /sbin/ldconfig

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3e7f5508d0ed76334708189099155ef57ff9b0f5bb559b2137726f8e93519385
size 53389
oid sha256:7c6a898df9c3cde5b3a644bef75bf5f2b1c813e5c16a9f4a4a0d6432ca869a08
size 53463