6 |
# ctdb is enabled by default, you can disable it with: --without clustering |
# ctdb is enabled by default, you can disable it with: --without clustering |
7 |
%bcond_without clustering |
%bcond_without clustering |
8 |
|
|
9 |
%define main_release 10.2 |
%define main_release 7.1 |
10 |
|
|
11 |
%define samba_version 4.2.3 |
%define samba_version 4.2.10 |
12 |
%define talloc_version 2.1.2 |
%define talloc_version 2.1.2 |
13 |
%define ntdb_version 1.0 |
%define ntdb_version 1.0 |
14 |
%define tdb_version 1.3.4 |
%define tdb_version 1.3.4 |
109 |
Source200: README.dc |
Source200: README.dc |
110 |
Source201: README.downgrade |
Source201: README.downgrade |
111 |
|
|
112 |
Patch0: samba-4.2-auth-credentials-if-credentials-have-principal-set-t.patch |
Patch1: samba-4.2.10-ldap-sasl-win2003.patch |
113 |
Patch1: samba-4.2.3-fix_smbX_segfault.patch |
Patch3: samba-4.2.3-document_netbios_length.patch |
114 |
Patch2: samba-4.2.3-fix_dfree_command.patch |
Patch4: samba-4.2.3-fix_net_ads_keytab_segfault.patch |
115 |
Patch3: samba-4.2.3-document_netbios_length.patch |
Patch5: samba-4.2.10-s3-parm-clean-up-defaults-when-removing-global-param.patch |
116 |
Patch4: samba-4.2.3-fix_net_ads_keytab_segfault.patch |
Patch6: samba-4.2.10-s3-winbind-make-sure-domain-member-can-talk-to-trust.patch |
117 |
Patch5: samba-4.2.3-fix_force_group.patch |
Patch7: samba-4.2.10-badlock-bugfixes.patch |
118 |
Patch6: samba-4.2.3-fix_map_to_guest_bad_uid.patch |
Patch8: samba-4.2.10-fix_rpcclient_ipc_signing.patch |
119 |
Patch7: samba-4.2.3-fix_nss_wins.patch |
Patch9: samba-4.2.10-fix_ntlm_auth_issues.patch |
120 |
|
Patch10: samba-4.2.10-fix_msrpc_parse.patch |
121 |
|
Patch11: samba-4.2.10-fix_anon_with_singing_mandatory.patch |
122 |
|
Patch12: samba-4.2.99-fix_idmap_hash_with_other_modules.path |
123 |
|
Patch13: samba-4.2.99-net_ads_join_fix_keytab_generation.patch |
124 |
|
Patch14: CVE-2016-2119-v4-2.patch |
125 |
|
|
126 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
127 |
|
|
399 |
Summary: Samba libraries |
Summary: Samba libraries |
400 |
Group: Applications/System |
Group: Applications/System |
401 |
Requires: krb5-libs >= 1.10 |
Requires: krb5-libs >= 1.10 |
402 |
Requires: libldb = %{ldb_version} |
Requires: libldb |
403 |
Requires: %{name}-client-libs = %{samba_depver} |
Requires: %{name}-client-libs = %{samba_depver} |
404 |
%if %with_libwbclient |
%if %with_libwbclient |
405 |
Requires: libwbclient = %{samba_depver} |
Requires: libwbclient = %{samba_depver} |
695 |
%prep |
%prep |
696 |
%setup -q -n samba-%{version}%{pre_release} |
%setup -q -n samba-%{version}%{pre_release} |
697 |
|
|
698 |
%patch0 -p1 -b .samba-4.2-auth-credentials-if-credentials-have-principal-set-t.patch |
%patch1 -p1 -b .samba-4.2.10-ldap-sasl-win2003.patch |
|
%patch1 -p1 -b .samba-4.2.3-fix_smbX_segfault.patch |
|
|
%patch2 -p1 -b .samba-4.2.3-fix_dfree_command.patch |
|
699 |
%patch3 -p1 -b .samba-4.2.3-document_netbios_length.patch |
%patch3 -p1 -b .samba-4.2.3-document_netbios_length.patch |
700 |
%patch4 -p1 -b .samba-4.2.3-fix_net_ads_keytab_segfault.patch |
%patch4 -p1 -b .samba-4.2.3-fix_net_ads_keytab_segfault.patch |
701 |
%patch5 -p1 -b .samba-4.2.3-fix_force_group.patch |
%patch5 -p1 -b .samba-4.2.10-s3-parm-clean-up-defaults-when-removing-global-param.patch |
702 |
%patch6 -p1 -b .samba-4.2.3-fix_map_to_guest_bad_uid.patch |
%patch6 -p1 -b .samba-4.2.10-s3-winbind-make-sure-domain-member-can-talk-to-trust.patch |
703 |
%patch7 -p1 -b .samba-4.2.3-fix_nss_wins.patch |
%patch7 -p1 -b .samba-4.2.10-badlock-bugfixes.patch |
704 |
|
%patch8 -p1 -b .samba-4.2.10-fix_rpcclient_ipc_signing.patch |
705 |
|
%patch9 -p1 -b .samba-4.2.10-fix_ntlm_auth_issues.patch |
706 |
|
%patch10 -p1 -b .samba-4.2.10-fix_msrpc_parse.patch |
707 |
|
%patch11 -p1 -b .samba-4.2.10-fix_anon_with_singing_mandatory.patch |
708 |
|
%patch12 -p1 -b .samba-4.2.99-fix_idmap_hash_with_other_modules.path |
709 |
|
%patch13 -p1 -b .samba-4.2.99-net_ads_join_fix_keytab_generation.patch |
710 |
|
%patch14 -p1 -b .CVE-2016-2119-v4-2.patch |
711 |
|
|
712 |
%build |
%build |
713 |
%global _talloc_lib ,talloc,pytalloc,pytalloc-util |
%global _talloc_lib ,talloc,pytalloc,pytalloc-util |
865 |
%endif |
%endif |
866 |
|
|
867 |
install -d -m 0755 %{buildroot}%{_unitdir} |
install -d -m 0755 %{buildroot}%{_unitdir} |
868 |
for i in nmb smb winbind samba; do |
for i in nmb smb winbind samba ; do |
869 |
cat packaging/systemd/$i.service | sed -e 's@\[Service\]@[Service]\nEnvironment=KRB5CCNAME=/run/samba/krb5cc_samba@g' >tmp$i.service |
cat packaging/systemd/$i.service | sed -e 's@\[Service\]@[Service]\nEnvironment=KRB5CCNAME=/run/samba/krb5cc_samba@g' >tmp$i.service |
870 |
install -m 0644 tmp$i.service %{buildroot}%{_unitdir}/$i.service |
install -m 0644 tmp$i.service %{buildroot}%{_unitdir}/$i.service |
871 |
done |
done |
882 |
install -d -m 0755 %{buildroot}%{_libdir}/krb5/plugins/libkrb5 |
install -d -m 0755 %{buildroot}%{_libdir}/krb5/plugins/libkrb5 |
883 |
touch %{buildroot}%{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so |
touch %{buildroot}%{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so |
884 |
|
|
885 |
|
%if ! %with_dc |
886 |
|
for i in %{_libdir}/samba/libdfs-server-ad-samba4.so \ |
887 |
|
%{_libdir}/samba/libdnsserver-common-samba4.so \ |
888 |
|
%{_mandir}/man8/samba.8 \ |
889 |
|
%{_mandir}/man8/samba-tool.8 \ |
890 |
|
%{_libdir}/samba/ldb/ildap.so \ |
891 |
|
%{_libdir}/samba/ldb/ldbsamba_extensions.so ; do |
892 |
|
rm -f %{buildroot}$i |
893 |
|
done |
894 |
|
%endif |
895 |
|
|
896 |
# This makes the right links, as rpmlint requires that |
# This makes the right links, as rpmlint requires that |
897 |
# the ldconfig-created links be recorded in the RPM. |
# the ldconfig-created links be recorded in the RPM. |
898 |
/sbin/ldconfig -N -n %{buildroot}%{_libdir} |
/sbin/ldconfig -N -n %{buildroot}%{_libdir} |
1369 |
%config(noreplace) %{_sysconfdir}/logrotate.d/samba |
%config(noreplace) %{_sysconfdir}/logrotate.d/samba |
1370 |
%attr(0700,root,root) %dir /var/log/samba |
%attr(0700,root,root) %dir /var/log/samba |
1371 |
%attr(0700,root,root) %dir /var/log/samba/old |
%attr(0700,root,root) %dir /var/log/samba/old |
1372 |
|
%attr(0755,root,root) %dir /var/lib/samba |
1373 |
%ghost %dir /var/run/samba |
%ghost %dir /var/run/samba |
1374 |
%ghost %dir /var/run/winbindd |
%ghost %dir /var/run/winbindd |
1375 |
%attr(700,root,root) %dir /var/lib/samba/private |
%attr(700,root,root) %dir /var/lib/samba/private |
1483 |
%{_unitdir}/samba.service |
%{_unitdir}/samba.service |
1484 |
%else # with_dc |
%else # with_dc |
1485 |
%doc packaging/README.dc |
%doc packaging/README.dc |
|
%exclude %{_mandir}/man8/samba.8* |
|
|
%exclude %{_mandir}/man8/samba-tool.8* |
|
|
%exclude %{_libdir}/samba/ldb/ildap.so |
|
|
%exclude %{_libdir}/samba/ldb/ldbsamba_extensions.so |
|
|
|
|
1486 |
%endif # with_dc |
%endif # with_dc |
1487 |
|
|
1488 |
### DC-LIBS |
### DC-LIBS |
1521 |
%{_libdir}/samba/bind9/dlz_bind9_9.so |
%{_libdir}/samba/bind9/dlz_bind9_9.so |
1522 |
%else |
%else |
1523 |
%doc packaging/README.dc-libs |
%doc packaging/README.dc-libs |
|
%exclude %{_libdir}/samba/libdfs-server-ad-samba4.so |
|
|
%exclude %{_libdir}/samba/libdnsserver-common-samba4.so |
|
1524 |
%endif # with_dc |
%endif # with_dc |
1525 |
|
|
1526 |
### DEVEL |
### DEVEL |
1740 |
%{_libdir}/samba/libHDB-SAMBA4-samba4.so |
%{_libdir}/samba/libHDB-SAMBA4-samba4.so |
1741 |
%{_libdir}/samba/libasn1-samba4.so.8 |
%{_libdir}/samba/libasn1-samba4.so.8 |
1742 |
%{_libdir}/samba/libasn1-samba4.so.8.0.0 |
%{_libdir}/samba/libasn1-samba4.so.8.0.0 |
|
#%{_libdir}/samba/libdfs_server_ad.so |
|
1743 |
%{_libdir}/samba/libgssapi-samba4.so.2 |
%{_libdir}/samba/libgssapi-samba4.so.2 |
1744 |
%{_libdir}/samba/libgssapi-samba4.so.2.0.0 |
%{_libdir}/samba/libgssapi-samba4.so.2.0.0 |
1745 |
%{_libdir}/samba/libhcrypto-samba4.so.5 |
%{_libdir}/samba/libhcrypto-samba4.so.5 |
2010 |
%endif # with_clustering_support |
%endif # with_clustering_support |
2011 |
|
|
2012 |
%changelog |
%changelog |
2013 |
* Wed Sep 28 2016 Greg Zartman <gzartman@koozali.org> - 4.2.3-11.sme |
* Wed Oct 5 2016 Daniel Berteaud <daniel@firewall-services.com> - 4.2.10-7.1.sme |
2014 |
- Build for SME 10 [SME: 9751] |
- Rebuild with DC support (work from Greg Zartman) [SME: 9817] |
2015 |
|
|
2016 |
|
* Mon Jul 04 2016 Andreas Schneider <asn@redhat.com> - 4.2.10-7 |
2017 |
|
- resolves: #1351960 - Fix CVE-2016-2119 |
2018 |
|
|
2019 |
* Wed Dec 02 2015 - ClearFoundation <developer@clearfoundation.com> - 4.2.3-10.clear |
* Tue Jun 28 2016 Andreas Schneider <asn@redhat.com> - 4.2.10-6.3 |
2020 |
- enable DC support for integration work |
- resolves: #1350759 - Fix idmap_hash when used with other modules |
2021 |
|
- resolves: #1351260 - Fix krb5 encryption type setup during join |
2022 |
|
|
2023 |
|
* Wed Jun 01 2016 Andreas Schneider <asn@redhat.com> - 4.2.10-6.2 |
2024 |
|
- related: #1333794 - Fix issues caused by security tightening for Badlock |
2025 |
|
o ntlm_auth issues and segfault |
2026 |
|
o rpcclient doesn't respect "client ipc *" options |
2027 |
|
o fix anonymous authentication if signing is mandatory |
2028 |
|
|
2029 |
|
* Fri May 06 2016 Alexander Bokovoy <abokovoy@redhat.com> - 4.2.10-6.1 |
2030 |
|
- Fix issues caused by security tightening for Badlock: |
2031 |
|
- Only validate MIC when "map to guest" is set |
2032 |
|
- NetApp SMB servers don't negotiate NTLMSSP_SIGN |
2033 |
|
- Anonymous connections don't work anymore |
2034 |
|
- wbinfo -u or 'net ads search' don't work anymore |
2035 |
|
- Handle empty session in client code |
2036 |
|
- resolves: #1333794 |
2037 |
|
|
2038 |
|
* Tue Apr 12 2016 Alexander Bokovoy <abokovoy@redhat.com> - 4.2.10-6 |
2039 |
|
- Fix domain member winbind not being able to talk to trusted domains' DCs |
2040 |
|
- relates: #1322690 |
2041 |
|
|
2042 |
|
* Mon Apr 11 2016 Alexander Bokovoy <abokovoy@redhat.com> - 4.2.10-5 |
2043 |
|
- Fix crash in smb.conf processing |
2044 |
|
- relates: #1322690 |
2045 |
|
|
2046 |
|
* Fri Apr 08 2016 Alexander Bokovoy <abokovoy@redhat.com> - 4.2.10-4 |
2047 |
|
- Fix LDAP SASL bind with arcfour-hmac-md5 |
2048 |
|
- resolves: #1322690 |
2049 |
|
|
2050 |
|
* Thu Apr 07 2016 Alexander Bokovoy <abokovoy@redhat.com> - 4.2.10-3 |
2051 |
|
- Make sure the package owns /var/lib/samba and uses it for cache purposes |
2052 |
|
- resolves: #1322690 |
2053 |
|
|
2054 |
|
* Wed Apr 06 2016 Alexander Bokovoy <abokovoy@redhat.com> - 4.2.10-2 |
2055 |
|
- Remove ldb modules and internal libraries for DC when not packaging DC build |
2056 |
|
- resolves: #1322690 |
2057 |
|
|
2058 |
|
* Mon Apr 04 2016 Alexander Bokovoy <abokovoy@redhat.com> - 4.2.10-1 |
2059 |
|
- resolves: #1322690 |
2060 |
|
|
2061 |
|
* Fri Mar 04 2016 Andreas Schneider <asn@redhat.com> - 4.2.3-12 |
2062 |
|
- resolves: #1314672 - Fix CVE-2015-7560 |
2063 |
|
|
2064 |
|
* Fri Dec 11 2015 Guenther Deschner <gdeschner@redhat.com> - 4.2.3-11 |
2065 |
|
- resolves: #1290710 |
2066 |
|
- CVE-2015-3223 Remote DoS in Samba (AD) LDAP server |
2067 |
|
- CVE-2015-5299 Missing access control check in shadow copy code |
2068 |
|
- CVE-2015-5252 Insufficient symlink verification in smbd |
2069 |
|
- CVE-2015-5296 Samba client requesting encryption vulnerable to |
2070 |
|
downgrade attack |
2071 |
|
|
2072 |
* Tue Oct 27 2015 Andreas Schneider <asn@redhat.com> - 4.2.3-10 |
* Tue Oct 27 2015 Andreas Schneider <asn@redhat.com> - 4.2.3-10 |
2073 |
- related: #1273393 - Fix use after free with nss_wins module loaded |
- related: #1273393 - Fix use after free with nss_wins module loaded |