1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-04 05:18:06 +03:00
Commit Graph

79474 Commits

Author SHA1 Message Date
Matthieu Patou
b68f72c7f5 lib/crypto: Detect CommonCrypto and use it if available
CommonCrypto/CommonDigest is available on Mac and there is function in
the libc for MD5 calculation. MD5Final is a C define of CC_MD5_Final.
Under some circumstance we have the symbol defined twice in samba
binaries on Snow Leopard at least.

By detecting CommonCrypto/CommonDigest we end up always using the system
version if available.
2012-03-14 06:52:27 +01:00
Rusty Russell
6dea4f24dc lib/tdb2: make summary handle capabilities properly.
Another PPC issue (endian?) revealed that the summary code did not handle
capabilities correctly: in fact, it went into an endless loop.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Wed Mar 14 06:51:43 CET 2012 on sn-devel-104
2012-03-14 06:51:43 +01:00
Rusty Russell
5ba2e4fc39 lib/tdb2: fix error string formatting.
This caused a crash on PPC64 when we failed the mmap (found by failtest,
reported by Amitay)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-03-14 05:09:30 +01:00
Rusty Russell
ee0d1daa27 lib/tdb2: Add gcc-style format attribute to tdb_logerr.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-03-14 05:09:30 +01:00
Jeremy Allison
2d35fd7259 Fix bug #8811 - sd_has_inheritable_components segfaults on an SD that se_access_check accepts.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Mar 14 05:08:03 CET 2012 on sn-devel-104
2012-03-14 05:08:03 +01:00
Richard Sharpe
44590c1b70 Fix bug #8795 - Samba does not handle the Owner Rights permissions at all
Signed-off-by: Jeremy Allison <jra@samba.org>

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Mar 14 02:26:34 CET 2012 on sn-devel-104
2012-03-14 02:26:34 +01:00
Jeremy Allison
0e376db8b8 Second part of fix for bug #7933 - samba fails to honor SEC_STD_WRITE_OWNER bit with the acl_xattr module.
Error found by Andrew Bartlett <abartlet@samba.org> and Ricky Nance
<ricky.nance@weaubleau.k12.mo.us>.

Don't use a pointer when you really mean a bool flag.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Mar 13 21:56:15 CET 2012 on sn-devel-104
2012-03-13 21:56:15 +01:00
Christian Ambach
7936fb0ab8 Fix bug #8807 - dcerpc_lsa_lookup_sids_noalloc() crashes when groups has more than 1000 groups
Use correct talloc heirarchy.

Signed-off-by: Jeremy Allison <jra@samba.org>
2012-03-13 12:17:31 -07:00
Andreas Schneider
8458043457 s4-python: Add missing python source file encoding.
See http://www.python.org/dev/peps/pep-0263/

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Tue Mar 13 19:31:09 CET 2012 on sn-devel-104
2012-03-13 19:31:09 +01:00
Andreas Schneider
4faba7615a s4-python: Remove env from non-executable webserver script. 2012-03-13 17:52:30 +01:00
Andreas Schneider
e5425743c2 s4-python: Remove env from non-executable samba_tool scripts. 2012-03-13 17:52:30 +01:00
Andreas Schneider
f9fda92376 s4-python: Remove env from non-executable dcerpc scripts. 2012-03-13 17:52:30 +01:00
Andreas Schneider
070828f791 s4-python: Remove execute flag from non-executable rpc_talloc script. 2012-03-13 17:52:30 +01:00
Andreas Schneider
ab1e52e09d s4-python: Remove env from non-executable blackbox test scripts. 2012-03-13 17:52:30 +01:00
Andreas Schneider
3caf954b85 s4-python: Remove execute flag from ndrdump blackbox script. 2012-03-13 17:52:29 +01:00
Andreas Schneider
cae282b5c2 s4-python: Remove env from non-executable test scripts. 2012-03-13 17:52:29 +01:00
Andreas Schneider
82c2bca89b s4-python: Remove env from non-executable netcmd scripts. 2012-03-13 17:52:29 +01:00
Andreas Schneider
3c9238e1b9 s4-python: Remove execute flag from netcmd scripts. 2012-03-13 17:52:29 +01:00
Andreas Schneider
b787ba789e s4-python: Remove env from non-executable samba scripts. 2012-03-13 17:52:29 +01:00
Andreas Schneider
66f16d57dc s4-python: Remove execute flag of upgradehelpers.py. 2012-03-13 17:52:29 +01:00
Andrew Bartlett
6ff5854c4f s3-spoolss: Consistently fail OpenPrinterEx with "" printername
samba3.rpc.spoolss.printserver has become a flakey test recently, and this
papers over the real problem.

Andrew Bartlett

Signed-off-by: Günther Deschner <gd@samba.org>

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Mar 13 17:51:00 CET 2012 on sn-devel-104
2012-03-13 17:50:59 +01:00
Jelmer Vernooij
85f128e8f3 nbench: Fix typo.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Mar 13 14:53:07 CET 2012 on sn-devel-104
2012-03-13 14:53:06 +01:00
Jelmer Vernooij
58b205d486 samba.8: Fix typo: deamon -> daemon. 2012-03-13 13:07:04 +01:00
Jelmer Vernooij
441c214dda samba_dnsupdate: Mention contents of invalid line when encountering parsing error.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=8809
2012-03-13 13:07:03 +01:00
Jelmer Vernooij
8b42801609 samba_dnsupdate: Raise proper exception when getting unexpected DNS reply. 2012-03-13 13:07:03 +01:00
Jelmer Vernooij
d87a24fe17 samba_dnsupdate: Use docstrings, which show up nicely in API docs. 2012-03-13 13:07:03 +01:00
Alexander Bokovoy
7d4ed89983 s3-rpc: Decrypt with the proper session key in CreateTrustedDomainEx2.
On LSA and SAMR pipes session_key is truncated to 16 byte when doing encryption/decryption.
However, this was not done for trusted domain-related modifying operations.

As result, Samba 4 client libraries do not work against Samba 3 while working
against Windows 2008 r2.

Solved this by introducing "session_extract_session_key()" function that allows to specify
intent of use of the key.

Signed-off-by: Andreas Schneider <asn@samba.org>

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Tue Mar 13 12:23:44 CET 2012 on sn-devel-104
2012-03-13 12:23:44 +01:00
Stefan Metzmacher
e25f830f1d selftest: samba3.smbtorture_s3.LOCAL-TALLOC-DICT works now
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Mar 13 10:38:20 CET 2012 on sn-devel-104
2012-03-13 10:38:20 +01:00
Stefan Metzmacher
100b92b2cc s3:torture: fix segfault in LOCAL-TALLOC-DICT
talloc_dict_set() expects a pointer to an talloc'ed pointer.

metze
2012-03-13 08:26:35 +01:00
Stefan Metzmacher
57ddd38c1a s3:torture: talloc_dict_traverse() returns the number of entries
metze
2012-03-13 08:26:35 +01:00
Jelmer Vernooij
8af7dadca2 selftest.run: Use subunit version of iso8601.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Mar 12 01:36:25 CET 2012 on sn-devel-104
2012-03-12 01:36:25 +01:00
Jelmer Vernooij
ed32df61f8 selftest.py: Remove some unnecessary checks. 2012-03-11 23:57:04 +01:00
Jelmer Vernooij
6f9c333f95 selftest.py: Move some infrastructure for running commands to selftest.run, with tests. 2012-03-11 23:57:04 +01:00
Jelmer Vernooij
f5bb26edb3 upgradedns: Remove unused import. 2012-03-11 23:57:04 +01:00
Jelmer Vernooij
90681153ad samba-tool: Write diagnostics to stderr rather than stdout. 2012-03-11 23:57:04 +01:00
Matthias Dieter Wallnöfer
a57d7ad772 s4:upgradeprovision - fix some output messages
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Mar 11 21:54:54 CET 2012 on sn-devel-104
2012-03-11 21:54:54 +01:00
Brad Smith
f0bba969d8 s3: Improve statvfs support
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Sun Mar 11 14:18:04 CET 2012 on sn-devel-104
2012-03-11 14:18:04 +01:00
Volker Lendecke
51e785949c waf: Do not use standards.h on darwin
We get a nasty warning every time we include that
2012-03-11 12:35:08 +01:00
Kai Blin
26a0e7a3f5 s4 dns: Test deleting records and fix a small bu
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Sun Mar 11 02:27:45 CET 2012 on sn-devel-104
2012-03-11 02:27:45 +01:00
Kai Blin
1e6ef242ec s4 dns: Be less chatty during tests 2012-03-11 00:31:38 +01:00
Kai Blin
a4bc7dc281 s4 dns: Clean up tests a bit 2012-03-11 00:31:37 +01:00
Kai Blin
98ae3592ad s4 dns: Support TXT updates, add tests 2012-03-11 00:31:37 +01:00
Kai Blin
e6c6f49595 s4 dns: Support TXT queries 2012-03-11 00:31:37 +01:00
Kai Blin
f9f1d98e74 s3 selftest: Allow DNS updates during testing 2012-03-11 00:31:37 +01:00
Jelmer Vernooij
ce4531ee31 tdb_wrap: Move to specific directory.
It's a bit confusing to mix low-level and high-level libraries.  We had
multiple libraries in one directory, and there were have circular
dependencies with other libraries outside that directory (in this case,
samba-hostconfig).

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Mar 10 23:13:01 CET 2012 on sn-devel-104
2012-03-10 23:13:01 +01:00
Jelmer Vernooij
f076186d3a samba.tests.blackbox.samba_tool_drs: Remove unused import. 2012-03-10 21:31:55 +01:00
Jelmer Vernooij
af08762653 wscript: Include talloc, tdb and ldb in pydoctor output. 2012-03-10 21:31:54 +01:00
Jelmer Vernooij
adcdee8933 samba.samdb: Fix formatting of arguments in docstring. 2012-03-10 21:31:54 +01:00
Jelmer Vernooij
d8a624a71f pydoctor: Specify --project-name. 2012-03-10 21:31:53 +01:00
Jelmer Vernooij
a0db69dd79 python: samba: Use relative import for _glue.
For some reason, using an absolute import breaks pydoctor.
2012-03-10 21:31:53 +01:00