286 Commits

Author SHA1 Message Date
jca
f6fa1e8195 Repair samba-tool domain provision --use-ntvfs
The situation is a mess.  Upstream says that s3fs (the original smb code
from samba3) requires filesystem ACLs, which we don't have.  The ntvfs
code (new in samba4, but now deprecated) fit the job, but
adding --with-ntvfs-fileserver doesn't actually provide a working 'smb'
service (see "server services" in smb.conf(5)).

So right now it seems that the workaround is to provision
using --use-ntvfs, but then to strip 'smb' from the 'server services'
line.

Reports welcome...
2016-09-12 15:38:22 +00:00
jca
55dada1e0e SECURITY update to samba-4.4.5
* CVE-2016-2119 (Client side SMB2/3 required signing can be downgraded)

ok ajacoutot@, Ian McWilliam, sthen@ on a previous version.  ok danj@
who noted missing entries in PLIST.
2016-07-08 18:39:50 +00:00
jca
b16be23fd8 Update to samba-4.4.4
Diff from Ian, tests & ok sthen@
2016-07-06 16:43:16 +00:00
jca
92a6e55dfb Fix quota handling that resulted in spam in logs.
Prodded by jung@, ok jung@ Ian
2016-05-15 01:10:07 +00:00
jca
99da75d56f Update to samba-4.4.3, bringing fixes for the regression introduced by 4.4.2.
Tested by Vijay Sankar and I.
2016-05-06 11:34:41 +00:00
jca
d7fb3db25d Better comment.
mips64 has atomic support now, don't mention atomic_add_32
2016-04-27 08:50:03 +00:00
jca
80b1bfa469 Committed upstream. 2016-04-26 12:23:05 +00:00
jca
6ba3931a94 Better workaround for clearenv 2016-04-25 15:01:29 +00:00
jca
3bfa72277a Drop gettext module 2016-04-25 08:58:10 +00:00
jca
a001ab7285 Update to samba-4.4.2
Tests by Vijay Sankar and Ian, ok Ian

This release contains the security fixes introduced by 4.4.2, plus the
new features and improvements from 4.4.0:

  https://www.samba.org/samba/history/samba-4.4.0.html
2016-04-22 11:48:36 +00:00
jca
d6e8759b50 SECURITY update to samba-4.3.8
ok sthen@ Ian McWilliam

CVE-2015-5370 (Multiple errors in DCE-RPC code)
CVE-2016-2110 (Man in the middle attacks possible with NTLMSSP)
CVE-2016-2111 (NETLOGON Spoofing Vulnerability)
CVE-2016-2112 (LDAP client and server don't enforce integrity)
CVE-2016-2113 (Missing TLS certificate validation)
CVE-2016-2114 ("server signing = mandatory" not enforced)
CVE-2016-2115 (SMB IPC traffic is not integrity protected)
CVE-2016-2118 (SAMR and LSA man in the middle attacks possible)

See https://www.samba.org/samba/history/samba-4.3.8.html for more
information.
2016-04-13 11:25:40 +00:00
jca
13f7dce85d Update to samba-4.3.6
i386 build by danj@, ok sthen@

The changelog between 4.1.23 and 4.3.6 is too big to be described here.
The point of updating now is that 4.1.x won't receive updates for the
freshly published security advisories.  samba-4.3.8 will follow.
2016-04-12 17:42:09 +00:00
jca
e19d82005b Stop fetching and packaging outdated pdf docs; ok Ian 2016-03-23 19:08:15 +00:00
naddy
a90d3a4179 remove SHARED_ONLY 2016-03-20 15:58:26 +00:00
jca
16c613f366 SECURITY update to samba-4.1.23; ok Ian McWilliam
Fixes for CVE-2015-7560 and CVE-2016-0771.
2016-03-09 19:40:11 +00:00
sthen
275b716f52 bump tevent 2016-01-18 12:10:51 +00:00
sthen
9005d1d063 sync WANTLIB 2016-01-17 17:29:07 +00:00
jca
fb9197ada0 SECURITY update to samba-4.1.22; ok Ian McWilliam
ChangeLog and descriptions of the relevant CVE's:

  https://www.samba.org/samba/history/samba-4.1.22.html

This update changed the signature of a few functions in libsamba-util,
so bump the shlib major.  Also update Ian's email adress while here.
2015-12-23 12:37:21 +00:00
ajacoutot
d60b768928 daemon_timeout is not passed to the child scripts either. 2015-11-29 15:50:20 +00:00
jca
a536651fbb Bugfix update to samba-4.1.21
"diff looks fine" Ian McWilliam
2015-10-15 16:57:19 +00:00
jca
cba377ac48 Backport usage warning for smbstatus(1), picked from upstream.
Problem noticed and different patch proposed by giovanni@.
ok giovanni@ Ian McWilliam
2015-09-30 18:16:14 +00:00
jca
dfec945430 Use -Wl,--no-undefined just like other platforms, -Wl,--as-needed works fine now.
Tested earlier on powerpc (sthen@), and on i386/amd64.  ok Ian McWilliam.
2015-09-30 18:14:07 +00:00
jca
11f801ff63 Back in May, miod gave nm(1) a -D flag. 2015-09-28 22:51:25 +00:00
jca
fe52d5d1d9 gc leftover from samba3 2015-09-28 22:48:06 +00:00
jca
43c2e95697 Fix two tests to allow building on hppa/mips64.
Those tests (for __sync_fetch_and_add and atomic_add_32) were broken,
yet waf thinks they succeed.

...
2015-09-28 22:46:06 +00:00
jca
203324e9ed Update to samba-4.1.20; ok sthen@ 2015-09-11 11:35:09 +00:00
jca
1dcc435ff4 Do not mention SWAT, it has been removed. 2015-08-26 18:05:31 +00:00
jca
fa14e12281 Stray @sample /var/run/samba, noticed earlier by ajacoutot@
/var/run gets cleaned at boot time.  The samba daemons create this
directory at startup.
2015-08-25 15:38:16 +00:00
ajacoutot
0176f4ec4e No need to explicitely list textproc/libxslt; the dependency on
docbook-xsl is enough.

ok jca@ (maintainer)
2015-08-25 12:03:21 +00:00
jca
48d3e06ff7 Add a note about nmbd being broken in AD DC setups, and bump.
Requested by giovanni@, putting it here instead of current.html so that
new users will be aware too.
2015-08-25 11:41:15 +00:00
jca
67d00b96ba Add an rc script for samba in AD DC mode. 2015-08-25 11:39:25 +00:00
jca
cb12b0e70a Ian McWilliam and I will co-maintain this. 2015-08-25 11:10:41 +00:00
jca
87847498b4 Tweak rc scripts and README. Tests, input from and ok sthen@ 2015-08-25 11:07:45 +00:00
jca
4b1d388711 Move samba4 to samba, and tweak the ports tree to use it.
ok ajacoutot@

Upcoming commits will add additional tweaks.

Many thanks to Vadim Zhukov (who did most of the work), Ian McWilliam
(co-maintainer), Stuart Henderson who provided lots of support and
feedback, Antoine Jacoutot who patiently dealt with my broken diffs,
and more generally all the people involved.  Most of the recent work was
done during p2k15 and c2k15.
2015-08-25 11:04:38 +00:00
ajacoutot
d9c1207e4f Move some obvious sudo -> '#' (root) in READMEs. 2015-07-07 14:43:36 +00:00
jca
61d1768e72 SECURITY update for CVE-2015-0240
talloc free on uninitialized stack pointer in netlogon server could lead
to remote-code execution.

  https://www.samba.org/samba/security/CVE-2015-0240
  https://bugzilla.samba.org/show_bug.cgi?id=11077

ok sthen@ naddy@ Ian McWilliam (MAINTAINER)
2015-02-25 01:37:49 +00:00
sthen
e56d2db445 Adjust the "meta" rc-scripts (these are used in ports with multiple daemons
which should all be started/stopped together), previously "restart" would
restart each sub-daemon in turn, but actually it should stop all daemons
and only then start them again. Additionally, as suggested by ajacoutot,
stop the procedure and return an error if stopping one of the rc scripts
failed.  ok ajacoutot@ rpe@
2015-02-17 22:08:36 +00:00
jca
e769be4eba Repair conflict between -main and -docs, introduced in previous.
The intended diff had this conflict resolved, but I ended up committing
the previous diff...  Problem spotted by Markus Lude.
2015-02-05 02:04:00 +00:00
jca
f7a904b485 Move the ldap files from the -docs to the -main samba package.
Requested by Marcus Merighi, patch by Ian McWilliam (MAINTAINER),
input from sthen@ and tweaks by me.

ok sthen@
2015-02-04 11:50:21 +00:00
ajacoutot
bca617be62 Make all meta rc.d scripts consistent.
While here, unbreak when options are passed (e.g. /etc/rc.d/foobar -df start)

ok sthen@
2014-12-08 10:57:08 +00:00
ajacoutot
dcb291c190 services(5) already contains what we need. 2014-07-11 16:20:37 +00:00
ajacoutot
497984ddf0 rc.conf.local is in man(1) section 8, at least for now. 2014-07-10 13:09:06 +00:00
sthen
20b5a675ba Backport fixes to samba from 3.6.24, from Ian McWilliam (maintainer)
CVE-2014-0244: malformed packet can nmbd to loop, preventing further
NetBIOS name service

CVE-2014-3493: smbd "crash involving overwriting memory on an
authenticated connection" (just classed as a DoS in release notes,
but that may be optimistic)
2014-06-26 11:43:54 +00:00
sthen
243ede5192 remove ads flavour, it requires krb5 2014-04-21 22:24:17 +00:00
brad
89efb251c6 Fix a security issue with Samba..
Password lockout not enforced for SAMR password changes. CVE-2013-4496

ok sthen@
2014-04-10 00:50:58 +00:00
brad
852c78a4dc Fix 2 security issues with Samba...
DCE-RPC fragment length field is incorrectly checked. CVE-2013-4408
ACLs are not checked on opening an alternate data stream on a file or directory. CVE-2013-4475

ok sthen@
2014-02-06 04:33:24 +00:00
espie
d70a43e9bb fix configure logic, prevent hidden header dependencies.
okay nigel@
2014-01-05 16:54:04 +00:00
nigel
d952928b21 Fix WANTLIB/LDEP sysutils/e2fsprogs for ads FLAVOR
Ok sthen@
2013-12-05 13:08:50 +00:00
brad
b89cb537c1 Add a DoS fix.. Missing integer wrap protection in EA list reading can cause
server to loop with DoS. CVE-2013-4124

ok sthen@
2013-10-06 22:00:48 +00:00
kirby
acf5fcd3ae fix MASTER_SITES
with permission from maintainer
2013-09-18 04:48:52 +00:00