1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

60969 Commits

Author SHA1 Message Date
Andrew Tridgell
2c097b51cb s4-pyglue: setup talloc logging in python modules 2010-04-02 18:52:29 +11:00
Andrew Tridgell
a8d213c151 pyrpc: do the pipe connect on a real memory context 2010-04-02 18:52:29 +11:00
Andrew Tridgell
b81100c710 debug: enable talloc logging
we want to ensure talloc warnings are printed in the log
2010-04-02 18:52:29 +11:00
Andrew Tridgell
fde50c633f talloc: a useful bit of debug code
this is useful when tracking down talloc loops. It is probably too
expensive to have on by default.
2010-04-02 18:52:29 +11:00
Andrew Tridgell
1b4bbec523 talloc: add a define for TALLOC_MAX_DEPTH
Thanks to the suggestion from simo
2010-04-02 18:52:29 +11:00
Andrew Tridgell
5ccd30e9ac talloc: change talloc minor version to 2.0.2
this has the talloc_is_parent() bugfix
2010-04-02 13:15:18 +11:00
Andrew Tridgell
ff2b7d42e6 talloc: limit the depth that talloc will go for talloc_is_parent()
We have a bug in the dcerpc registry code that can cause a talloc loop
that chews unlimited CPU because of talloc_is_parent() during a
talloc_free()
2010-04-02 13:15:18 +11:00
Jeremy Allison
bf90969892 Move initialize_async_io_handler() inside of smbd/aio.c.
Call from actual aio read or write. No reason to call this globally on startup.

Jeremy.
2010-04-01 16:47:59 -07:00
Jeremy Allison
b6aabcd628 Add torture test for bug 7310 - DOS attribute inconsistency with MS Office
Ensure we don't regress.

Jeremy.
2010-04-01 15:01:43 -07:00
Stefan Metzmacher
e18ddb6036 s3:winbindd: remove unused variables
metze
2010-04-01 18:11:25 +02:00
Stefan Metzmacher
73577205cf s3:winbindd: fix problems with SIGCHLD handling (bug #7317)
The main problem is that we call CatchChild() within the
parent winbindd, which overwrites the signal handler
that was registered by winbindd_setup_sig_chld_handler().

That means winbindd_sig_chld_handler() and winbind_child_died()
are never triggered when a winbindd domain child dies.
As a result will get "broken pipe" for all requests to that domain.

To reduce the risk of similar bugs in future we call
CatchChild() in winbindd_reinit_after_fork() now.

We also use a full winbindd_reinit_after_fork() in the
cache validation child now instead instead of just resetting
the SIGCHLD handler by hand. This will also fix possible
tdb problems on systems without pread/pwrite and disabled mmap
as we now correctly reopen the tdb handle for the child.

metze
2010-04-01 17:25:11 +02:00
Volker Lendecke
3475c61179 s3: Ensure NULL termination before printing in winbindd_pam_logoff 2010-04-01 16:34:01 +02:00
Jelmer Vernooij
c63440e040 s4-python: Ensure __init__ exists in samba.external, or importing will fail. 2010-04-01 15:33:08 +02:00
Jelmer Vernooij
84891b048d s4-python: Install external packages to a different directory but import into
the normal namespace when the system doesn't have it available.
2010-04-01 15:33:07 +02:00
Volker Lendecke
64c564291d s3: Fix a typo in winbindd_pam_logoff 2010-04-01 15:14:09 +02:00
Jelmer Vernooij
132e505d1e subunitrun: Find testtools and subunit when they're not provided by the
system.
2010-04-01 14:47:54 +02:00
Stefan Metzmacher
a2411c5708 s3:winbindd: correctly invalidate the cached connection
There're maybe additional TCP connection for ncacn_ip_tcp.

metze
2010-04-01 13:01:27 +02:00
Stefan Metzmacher
0f95d00f49 s3:winbindd: only set child_domain in the child
metze
2010-04-01 13:01:26 +02:00
Stefan Metzmacher
d930904b99 s3:winbindd: make sure we don't try rpc requests against unaccessable domains
This makes sure we don't crash while trying to dereference domain->conn.cli->foo
while trying to establish a rpc connection to the server.

metze
2010-04-01 13:01:26 +02:00
Volker Lendecke
658dc77446 s3: fix a typo in winbind_client_response_written 2010-04-01 12:56:54 +02:00
Jeremy Allison
6800fdbb81 Make smbd_lock_socket/smbd_unlock_socket recursive with a ref_count.
As these always call exit_server, make that part of the function.
Use _internal functions for the echo client.

Metze please check !

Jeremy.
2010-03-31 17:40:30 -07:00
Christian PERRIER
bb54089503 s3: Merge French translation for pam_winbind after review
- some wording improvements ("user" is not "usager" but "utilisateur"
- gender neutrality changes:
  by rewording:  ("vous n'êtes pas autorisé" --> "vous n'avez pas
  l'autorisation")
- bad translation corrections: "valide"-->"valable" (a very common
  false friend)
- and several changes we consider to be improvements, mostly because
  they are common wording in computing translations in French

Signed-off-by: Lars Müller <lars@samba.org>
2010-03-31 23:10:11 +02:00
Volker Lendecke
0e3f031e59 s3: Fix an error message in winbindd_pam_chauthtok() 2010-03-31 22:07:39 +02:00
Volker Lendecke
15d58f688f s3: Ensure null termination in winbindd_pam_chauthtok() 2010-03-31 22:07:38 +02:00
Volker Lendecke
6d9b2e62cb s3: Make check_info3_in_group static 2010-03-31 21:03:07 +02:00
Volker Lendecke
cf4a8f7639 s3-winbind: Make append_auth_data() static 2010-03-31 21:03:06 +02:00
Jeremy Allison
eb60833a45 Fix bug 7310 - DOS attribute inconsistency with MS Office
On rename we need to set the archive bit on the renamed file.

Jeremy
2010-03-31 10:10:52 -07:00
Jeremy Allison
2e839a636b Merge branch 'master' of ssh://git.samba.org/data/git/samba 2010-03-31 10:01:03 -07:00
Stefan Metzmacher
6f30b9a6ff s3:smbd: handle SMB2 in deadtime_fn() and avoid disconnecting non idle clients
metze
2010-03-31 04:55:47 +02:00
Jelmer Vernooij
74f36df4b3 selftest: Update sys.path before attempting to import external modules. 2010-03-31 04:52:13 +02:00
Jelmer Vernooij
c6b1553a2b selftest: Make sure format-subunit and filter-subunit can find testtools/subunit. 2010-03-31 04:51:05 +02:00
Jelmer Vernooij
36c84854cb subunit: Include remainder of bindings and metadata. 2010-03-31 04:24:04 +02:00
Jelmer Vernooij
6897be7475 testtools: Fix included testtools, for systems that don't have it. 2010-03-31 04:19:36 +02:00
Jelmer Vernooij
5f3fcf7a77 s4-python: Install external included packages only if they're not present on the system. 2010-03-31 03:56:24 +02:00
Jelmer Vernooij
0e77bea165 installmisc: Support DESTDIR for Python directories. 2010-03-31 03:47:10 +02:00
Jelmer Vernooij
62ed8a68cd format-subunit: Hide reason if it is None. 2010-03-31 03:34:50 +02:00
Jelmer Vernooij
49d82aa772 format-subunit: Don't show reason at all if it is None. 2010-03-31 03:32:23 +02:00
Jelmer Vernooij
a8ac7fda57 Put testtools directly under lib/ to make it easier to install from Samba 4. 2010-03-31 03:19:18 +02:00
Jelmer Vernooij
e4af3afd7a samba_external: Simplify script to find missing external packages; include subunit and testtools as well. 2010-03-31 03:15:24 +02:00
Jelmer Vernooij
31094b0e8c smbtorture: Report number of available tests in a testsuite using subunit. 2010-03-31 02:57:47 +02:00
Jelmer Vernooij
197c98292b subunit: Also import copies of filters and perl module. 2010-03-31 02:20:10 +02:00
Jelmer Vernooij
9fe4b01ca6 selftest: Use boolean types in Python. 2010-03-31 02:20:09 +02:00
Jelmer Vernooij
6c299d28b5 selftest: Use standard subunit command for progress reporting. 2010-03-31 02:20:08 +02:00
Jelmer Vernooij
7f1360db51 selftest: Support parsing progress in format-subunit/filter-subunit. 2010-03-31 02:20:08 +02:00
Jelmer Vernooij
b2eb609d4d selftest: Use standard subunit commands for progress reporting. 2010-03-31 02:20:08 +02:00
Jelmer Vernooij
beb630b690 s4-selftest: Fix xfail for base.delete. 2010-03-31 02:20:08 +02:00
Jelmer Vernooij
12e34eafb8 selftest: Use absolute tests names in knownfail. 2010-03-31 02:20:08 +02:00
Jelmer Vernooij
08161e093d selftest: Convert filter-subunit to Python so the subunit Python module
can be used later.
2010-03-31 02:20:07 +02:00
Jelmer Vernooij
ae5381d34c format-subunit: Avoid printing backtrace on Ctrl-C. 2010-03-31 02:20:07 +02:00
Jeremy Allison
f58d02dbee Second part of fix for bug #6494 - Incorrect FileStatus returned in NT_CREATE_ANDX.
Ensure we do this in nttrans create too.

Jeremy.
2010-03-30 16:54:43 -07:00