disable winbind by default; add idmap conf in default smb.conf to fix startup with winbind; fix systemd tmpfile /var/run path [release 4.9.4-2mamba;Wed Feb 13 2019]

This commit is contained in:
Silvan Calarco 2024-01-05 17:37:20 +01:00
parent 7f03649c44
commit c249295c94
2 changed files with 20 additions and 5 deletions

View File

@ -0,0 +1,12 @@
--- samba-4.9.4/examples/smb.conf.default.orig 2019-02-13 18:58:06.784980885 +0100
+++ samba-4.9.4/examples/smb.conf.default 2019-02-13 18:59:19.097289090 +0100
@@ -108,6 +108,9 @@
; delete user from group script = /usr/sbin/deluser %u %g
; delete group script = /usr/sbin/groupdel %g
+# Needed when used with Winbind
+idmap config * : backend = tdb
+idmap config * : range = 3000-7999
#============================ Share Definitions ==============================
[homes]

View File

@ -7,7 +7,7 @@
Name: samba Name: samba
Version: 4.9.4 Version: 4.9.4
Release: 1mamba Release: 2mamba
Summary: Samba provides seamless file and print services to SMB/CIFS clients Summary: Samba provides seamless file and print services to SMB/CIFS clients
Group: System/Servers Group: System/Servers
Vendor: openmamba Vendor: openmamba
@ -33,6 +33,7 @@ Source13: winbind-nm-dispatcher
Patch0: samba-4.0.6-libtirpc.patch Patch0: samba-4.0.6-libtirpc.patch
Patch1: samba-4.1.14-no-as-needed.patch Patch1: samba-4.1.14-no-as-needed.patch
# openmamba patches: # openmamba patches:
Patch2: samba-4.9.4-conf-idmap.patch
Patch10: %{name}-3.0.23-smbldaptools-rootbinddn.patch Patch10: %{name}-3.0.23-smbldaptools-rootbinddn.patch
Patch11: %{name}-3.2.4-remove_strlcpy_strlcat.patch Patch11: %{name}-3.2.4-remove_strlcpy_strlcat.patch
Patch12: %{name}-3.5.8-mount_disable_setuid_check.patch Patch12: %{name}-3.5.8-mount_disable_setuid_check.patch
@ -232,6 +233,7 @@ This package contains the winbind daemon and the wbinfo tool.
#:<< _EOF #:<< _EOF
#%patch0 -p1 #%patch0 -p1
#%patch1 -p1 #%patch1 -p1
%patch2 -p1
%build %build
#:<< _EOF #:<< _EOF
@ -318,9 +320,7 @@ sed -i "s|/usr/local/samba/var/log|/var/log/samba/log|;\
#done #done
#sed -i "s|/var/run/|/run/|" packaging/systemd/samba.conf.tmp #sed -i "s|/var/run/|/run/|" packaging/systemd/samba.conf.tmp
install -D -m0644 packaging/systemd/samba.conf.tmp %{buildroot}%{_tmpfilesdir}/samba.conf install -D -m0644 packaging/systemd/samba.conf.tmp %{buildroot}%{_tmpfilesdir}/samba.conf
#install -D -m0644 packaging/systemd/samba.conf.tmp %{buildroot}%{_tmpfilesdir}/nmb.conf sed -i "s|/var/run/samba|/run/samba|" %{buildroot}%{_tmpfilesdir}/samba.conf
#install -D -m0644 packaging/systemd/samba.conf.tmp %{buildroot}%{_tmpfilesdir}/smb.conf
#install -D -m0644 packaging/systemd/samba.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/samba
install -D -m 0644 examples/LDAP/samba.schema \ install -D -m 0644 examples/LDAP/samba.schema \
%{buildroot}/etc/openldap/schema/samba.schema %{buildroot}/etc/openldap/schema/samba.schema
@ -370,7 +370,7 @@ install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/50-samba.preset << _EOF cat > %{buildroot}%{_presetdir}/50-samba.preset << _EOF
enable nmb enable nmb
enable smb enable smb
enable winbind disable winbind
_EOF _EOF
%clean %clean
@ -802,6 +802,9 @@ fi
%{_mandir}/man8/winbindd.* %{_mandir}/man8/winbindd.*
%changelog %changelog
* Wed Feb 13 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.9.4-2mamba
- disable winbind by default; add idmap conf in default smb.conf to fix startup with winbind; fix systemd tmpfile /var/run path
* Sat Jan 12 2019 Automatic Build System <autodist@mambasoft.it> 4.9.4-1mamba * Sat Jan 12 2019 Automatic Build System <autodist@mambasoft.it> 4.9.4-1mamba
- automatic version update by autodist - automatic version update by autodist